Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

How to load and Display Instances?

ccmeyer

New member
I have a part file with multiple part instances. I am using ProToolkit
to load each instance into the display and then using some mapkey
functions to perform some operations on the displayed instance.

When the instances load they are "regenerated". This regeneration seems
to allow the mapkey process to get ahead of the file state, and certain
menu options are not available.



I tried using some of the following type code ProNotificationSet(PRO_SOLID_REGEN_POST,(ProFunction)instanc eLoaded);



where instanceLoaded function calls the mapkey commands.

MapKey commands do work if I load a part with no instances.

Anyone have any experience in writing toolkit code to monitor the state
of an instance so that code can only proceed once the instance is fully
loaded/displayed/generated?
 
It's a work around, but I think if you save the instance accelerators you can avoid the regen when the instances load.
 
Ok, where in API doc do they go over instance accelerators, quick search didn't show up anything. Thanks for any help...
 

Sponsor

Articles From 3DCAD World

Back
Top