Object ProMech

Function ProMechMasspropsExpressionGet


Description
Obtains the value corresponding to 'type' of the mass property object. Use ProMathExpressionEvaluate() to evaluate the value.
Licensing Requirement
TOOLKIT for Mechanica
Synopsis
#include <ProMechMassProps.h>
ProErrorProMechMasspropsExpressionGet(
ProMechItem* item
/* (In)
The mass property.
*/
ProMechMasspropsPropertyType type
/* (In)
The mass property type.
*/
ProMechExpression expr
/* (Out)
The property value (expression).
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments are invalid.
PRO_TK_BAD_CONTEXTThe Creo Simulate session is not initialized.
PRO_TK_NO_LICENSENo license was available to enable this function.
PRO_TK_INVALID_PTRThe Input ProMechItem Solid pointer is invalid.
PRO_TK_GENERAL_ERRORA general error is encountered.

Manual References:

  1. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0
  2. Creo Simulate: Items: Creo Simulate Mass Properties
  3. Creo Simulate: Items: Creo Simulate Mass Properties