Category Creo Parametric fundamentals, Object ProUnit

Function ProUnitConversionGet


Description
Retrieves the conversion factor for a unit. Works only with basic quantities: PRO_UNITTYPE_LENGTH, PRO_UNITTYPE_MASS, PRO_UNITTYPE_FORCE, PRO_UNITTYPE_TIME, PRO_UNITTYPE_TEMPERATURE, PRO_UNITTYPE_ANGLE.
Replacement in Object TOOLKIT: pfcUnit::ConversionFactor
pfcUnit::ReferenceUnit
Synopsis
#include <ProMdlUnits.h>
ProErrorProUnitConversionGet(
ProUnititem* unit
/* (In)
The unit.
*/
ProUnitConversion* conversion
/* (Out)
The conversion factor for the unit.
*/
ProUnititem* ref_unit
/* (Out)
The reference unit for the unit.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.

Manual References:

  1. Assembly: Data Sharing Features: Accessing Properties of Variant Features
  2. Core: Solids, Parts, and Materials: Solid Units
  3. Core: Solids, Parts, and Materials: Solid Units