API Documentation
>
Creo Parametric fundamentals
>
Object ProUnit
> Function ProUnitExpressionGet
Function ProUnitExpressionGet
Description
Returns a user-friendly unit description: the name (i.e. "ksi") for ordinary units and the expression (i.e. N/m^3) for system-generated units.
Replacement in Object TOOLKIT:
pfcUnit::Expression
Synopsis
#include <
ProMdlUnits.h
>
ProError
ProUnitExpressionGet
(
ProUnititem
* unit
/* (In)
The unit item.
*/
ProPath
expression
/* (Out)
The unit expression.
*/
)
Returns
PRO_TK_NO_ERROR
The function succeeded.
PRO_TK_BAD_INPUTS
One or more arguments was invalid.
PRO_TK_E_NOT_FOUND
The unit type was not recognized.
Sample Code References
pt_userguide ( UgMaterial.c )
User Guide References
Accessing Individual Units:ProUnitExpressionGet
Material Types and Properties:ProUnitExpressionGet
Was this helpful?
This site works best with JavaScript enabled