Category Mechanica, Object ProMechanica

Function ProMechanicaEnter


Description
Enter Creo Simulate for current model (part/assembly) in session. Required licenses will be obtained, if available. Notes:

The solid model must be displayed in a window. Call ProMdlDisplay() to display model in current active window before using this function.

No control should be passed to UI between calls to ProMechanicaEnter() and ProMechanicaLeave(). Only Creo Parametric TOOLKIT functions dealing with the Simulation Database can be called.

Calling ProMechanicaEnter() in user_initialize() is not supported.

Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechanica.h>
ProErrorProMechanicaEnter(
ProSolid solid
/* (In)
The solid model.
*/
ProMechanicaMode mode
/* (In)
The mode (Structure/Thermal) of Creo Simulate.
*/
ProBool fem
/* (In)
The FEM mode (PRO_B_TRUE), or regular Creo Simulate (PRO_B_FALSE).
*/
)
Returns
PRO_TK_NO_ERRORCreo Simulate is entered successfully.
PRO_TK_INVALID_PTRThe input solid pointer is invalid.
PRO_TK_BAD_INPUTSOne or more input arguments are invalid.
PRO_TK_NOT_DISPLAYEDSpecified model was not displayed.
PRO_TK_NO_LICENSECould not obtain required licenses.
PRO_TK_BAD_CONTEXTCurrent Application is already Creo Simulate.
PRO_TK_INVALID_ITEMCould not activate Creo Simulate for this model.
PRO_TK_CANT_ACCESSCreo Simulate model is "lite", access denied.
PRO_TK_GENERAL_ERRORA general error is encountered.

Manual References:

  1. Creo Simulate: Items: Entering the Creo Simulate Environment
  2. Creo Simulate: Items: Entering the Creo Simulate Environment