cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Notification for Param change

msteffke
12-Amethyst

Notification for Param change

Toolkitters,
I want to use ProNotificationSet() with the notify type PRO_PARAM_MODIFY_PRE. I'm not exactly sure when this will trigger. Here's my guesses.
1. When a users selects Parameter, Modify, enters value and hits enter?
2. When a relation modifes the value of a param during a regen?
3. What if a seperate toolkit program modifies this parameter?
4. What if param is designated in intralink and the value is changed there?

If anyone has tested any of this behavior I'd really appreciate any comments, otherwise I'll have to test all this.

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

--- "Steffke, Mark" <-> wrote:
> Toolkitters,
> I want to use ProNotificationSet() with the notify type
> PRO_PARAM_MODIFY_PRE. I'm not exactly sure when this will trigger.
> Here's my guesses.
> 1. When a users selects Parameter, Modify, enters value and hits
> enter?
> 2. When a relation modifes the value of a param during a regen?
> 3. What if a seperate toolkit program modifies this parameter?
> 4. What if param is designated in intralink and the value is changed
> there?
>
> If anyone has tested any of this behavior I'd really appreciate any
> comments, otherwise I'll have to test all this.

Mark,

I haven't tried out each of the scenarios but the only one I'm a little
shaky on is #4. When you add a pre notification to modifying parameters
then your callback function acts as a filter. If you return anything
other than PRO_TK_NO_ERROR from that callback function then the
parameter modification is denied.

That being said, I'm fairly confident that if your application is
actually running in Pro/Engineer when any of the four scenarios attempt
to modify the value of a parameter then your callback function will get
called and you can take the appropriate action (allow/deny). The shaky
one is #4 because I think that you can modify a designated parameter
for a model in Intralink without being linked to a Pro/Engineer
session. Therefore your Toolkit application (your parameter
modification filter) won't be running so it might let that through if
Intralink modifies the file directly. That one you'll have to test.

Don't know how much this helps but at least it's a response.

Good Luck,

Michael L. Fussy
Timeous Systems
(407) 291-9270 Tel
(413) 521-0671 Fax
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration