Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlErase


Description
Erases the specified model from memory. 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: pfcModel::Erase
Synopsis
#include <ProMdl.h>
ProErrorProMdlErase(
ProMdl handle
/* (In)
The model to erase
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully erased the model.
PRO_TK_BAD_INPUTSThe argument is invalid.
PRO_TK_E_DEADLOCKThe Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Models and Model Items: File Management Operations
  3. Core: Models and Model Items: File Management Operations
  4. Interface: Importing Features

Sample Code References:

  1. pt_examples ( TestDbms.c )
  2. pt_examples ( TestDbms.c )
  3. pt_examples ( UtilSect.c )
  4. pt_userguide ( UgSmtFlatWallCreate.c )
  5. pt_userguide ( UgSmtFlgWallCreate.c )
  6. pt_wc_server ( PTWCServerAddInstance.c )