--- "Steffke, Mark" <-> wrote:
> 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
> 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
> If anyone has tested any of this behavior I'd really appreciate any
> comments, otherwise I'll have to test all this.
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.
Michael L. Fussy
(407) 291-9270 Tel
(413) 521-0671 Fax