Category Mechanica, Object ProMechitem

Function ProMechitemCreate


Description
Creates a new Creo Simulate item
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechItem.h>
ProErrorProMechitemCreate(
ProSolid solid
/* (In)
The handle of top Creo Parametric model ( part/assembly )
*/
ProType type
/* (In)
The mech item type.
*/
ProMechItem* item
/* (Out)
The created mech item
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments are invalid.
PRO_TK_CANT_WRITESubtype cannot be changed.
PRO_TK_GENERAL_ERRORA general error is encountered..
PRO_TK_INVALID_PTRThe Input ProMechItem Solid pointer is invalid.
PRO_TK_CANT_MODIFYCannot modify the item.
PRO_TK_BAD_CONTEXTThe Creo Simulate session is not initialized.

Manual References:

  1. Creo Simulate: Items: Modifying the Creo Simulate Loads
  2. Creo Simulate: Items: Modifying the Creo Simulate Constraints

Sample Code References:

  1. pt_mech_examples ( PTMechExCopy.c )
  2. pt_mech_examples ( PTMechExLoadMenu.c )
  3. pt_mech_examples ( PTMechExLoadMenu.c )
  4. pt_mech_examples ( PTMechExLoadMenu.c )
  5. pt_mech_examples ( PTMechExLoadMenu.c )
  6. pt_mech_examples ( PTMechExMatOrient.c )
  7. pt_mech_examples ( PTMechExUtils.c )