Category Mechanica, Object ProMechmodel

Function ProMechmodelGet


Description
Obtains the root handle to a Creo Simulate geometry model. NOTE: Call ProMdlDisplay() to display model in current active window before using this function.

If the type of geometry generated is PRO_MECH_MODEL_SHELL or PRO_MECH_MODEL_MIXED, the function requires the Creo Simulate license (and will attempt to obtain it if its not in session).

If the input solid (or any of its components) contains Creo Simulate Volume Region or Surface Region features, the function requires the Creo Simulate license (and will attempt to obtain it if its not in session).

Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechGeometry.h>
ProErrorProMechmodelGet(
ProSolid solid
/* (In)
The root solid model (part or assembly).
*/
ProMechModelData data
/* (In)
Options for the generation of geometry.
*/
ProMechModel* mech_model
/* (Out)
Root handle to the generated geometry.
*/
ProMechModelStatus* status
/* (Out)
The status of generation.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_NOT_DISPLAYEDSpecified model was not displayed.
PRO_TK_BAD_INPUTSOne or more input arguments are invalid.
PRO_TK_BAD_CONTEXTThe Creo Simulate session is not initialized.
PRO_TK_GENERAL_ERRORA general error is encountered.

Manual References:

  1. Creo Simulate: Geometry: Obtaining Creo Simulate Geometry from Creo TOOLKIT
  2. Creo Simulate: Geometry: Obtaining Creo Simulate Geometry from Creo TOOLKIT