API 文件集 > Mechanica > Object ProMechmodel > Function ProMechmodelGet
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
Synopsis
ProMechmodelGet
(
ProSolid solid
/* (In)
The root solid model (part or assembly).
*/
/* (In)
Options for the generation of geometry.
*/
ProMechModel* mech_model
/* (Out)
Root handle to the generated geometry.
*/
/* (Out)
The status of generation.
*/
)
Returns
The function succeeded.
Specified model was not displayed.
One or more input arguments are invalid.
The Creo Simulate session is not initialized.
A general error is encountered.
User Guide References
這是否有幫助?