User's Guide > Event-driven Programming: Notifications > Notes on Regeneration Events
Notes on Regeneration Events
Notifications which trigger before or after feature regeneration should be used carefully, because your callback function is being called while the regeneration of a solid is in progress. This section describes some of the important information you should keep in mind when using notification for model events.
At the start of model regeneration, Creo+ discards all data structures that describe geometry, although the geometry items themselves are retained (to preserve the integer identifiers). This means that although you can still traverse the features (using ProSolidFeatVisit()) and the geometry items in a feature (using ProFeatureGeomitemVisit()), geometry items belonging to features not yet regenerated will have no corresponding OHandles. Therefore, functions such as ProSurfaceInit() and ProEdgeInit() will not work. If you analyze the geometry of the features already regenerated, you will see it as unmodified by the features still to be regenerated.
It is dangerous to attempt modifications to the model or file management operations during a regeneration notification function.
Was this helpful?