API 설명서 > Mechanica > Object ProMechanica > Function ProMechanicaEnter
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
Synopsis
#include <ProMechanica.h>
ProMechanicaEnter
(
ProSolid solid
/* (In)
The solid model.
*/
/* (In)
The mode (Structure/Thermal) of Creo Simulate.
*/
/* (In)
The FEM mode (PRO_B_TRUE), or regular Creo Simulate (PRO_B_FALSE).
*/
)
Returns
Creo Simulate is entered successfully.
The input solid pointer is invalid.
One or more input arguments are invalid.
Specified model was not displayed.
Could not obtain required licenses.
Current Application is already Creo Simulate.
Could not activate Creo Simulate for this model.
Creo Simulate model is "lite", access denied.
A general error is encountered.
User Guide References
도움이 되셨나요?