Category Creo Parametric fundamentals, Object ProUnit

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
pfcMaterial::GetPropertyValue
Synopsis
#include <ProMdlUnits.h>
ProErrorProUnitExpressionGet(
ProUnititem* unit
/* (In)
The unit item.
*/
ProPath expression
/* (Out)
The unit expression.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_E_NOT_FOUNDThe unit type was not recognized.

Manual References:

  1. Core: Solids, Parts, and Materials: Solid Units
  2. Core: Solids, Parts, and Materials: Solid Units
  3. Core: Solids, Parts, and Materials: Material Types and Properties
  4. Core: Solids, Parts, and Materials: Material Types and Properties

Sample Code References:

  1. pt_userguide ( UgMaterial.c )