Category Mechanica, Object ProMechitem

Function ProMechitemRemove


Description
Removes a Creo Simulate item from the model.
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechItem.h>
ProErrorProMechitemRemove(
ProMechItem* item
/* (In)
The item to be deleted.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_CANT_ACCESSCannot access the object in the current mode.
PRO_TK_BAD_INPUTSOne or more input arguments are invalid.
PRO_TK_E_IN_USEAnother simulation item is dependent on this item. Use ProMechitemDependenciesGet() to find the dependent items.
PRO_TK_CANT_MODIFYCannot modify the item.
PRO_TK_GENERAL_ERRORA general error is encountered.
PRO_TK_INVALID_PTRThe Input ProMechItem Solid pointer is invalid.

Sample Code References:

  1. pt_mech_examples ( PTMechExDelete.c )