Greetings,
I am retrieving an assembly, and when every component is retrieved
I need to perform an operation on every part. In my toolkit dll I have
set up a notifcation for PRO_MDL_RETRIEVE_POST_ALL. I can see thru the
trail file that the call is indeed being made for every part. However,
during every call to my notification function I am checking the name
using promodelnameget and it always returns the assembly name that I
chose to open. That is not the behaviour I expect for the
PRO_MDL_RETRIEVE_POST_ALL notification. Below is the wizards
explanation of all events.
* Post-file management (all events)--This is the same as the
post-file management event above, except the callback function is called
for all secondary file management events on models other than the one
explicitly specified. For example, if you save an assembly, the callback
function is also called for any modified parts that are saved as a
result of that action.
I expect every call to give me the mdl handle for the component being
retrieved. Is my expectation correct?
In my callback function I was using status = ProMdlCurrentGet (&mdl)
and it kept giving the same model, so I have tried in my function call
to pass in the mdl. MyRetrievePost(ProMdl mdl). That seems to give
me no model. Is there a way to get the model handle that I am not
seeing?
Thanks for any help.
int user_initialize()
ProNotificationSet(PRO_MDL_RETRIEVE_POST_ALL, MyRetrievePost);
Mark Steffke
Engineering System Administrator
The Delfield Company
Manitowoc Foodservice
T 989.775.9215 or 989.773.7981, ext 12484
Integrity, Commitment to Stakeholders, and Passion for Excellence
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.