Function ProMdlEraseAll
Description
Erases a model and all the models that it uses, except those also used by other models in session. For example, it erases recursively all subassemblies of an assembly, and all solids referenced from a drawing. It also works in cases where some of the models to be erased have mutual dependencies. When erasing the active model, graphic display is cleared immediately, but data is not cleared until the next command gets processed.
NOTE:
The erasing action caused by this function will be finished only after the execution control is returned to Creo Parametric. Therefore, calling other functions after this function without returning the control may lead to an unpredicted behavior.
Replacement in Object TOOLKIT:
Synopsis
#include <ProMdl.h>
ProMdlEraseAll
(
ProMdl model
/* (In)
The model to be erased
*/
)
Returns
Current User Interface context does not allow erasure of models (for example, when the Erase button is grayed out).
The model could not be erased because it is in use, for example by another model in the session.
Sample Code References
User Guide References
¿Fue esto útil?