Category Creo Parametric fundamentals, Object ProUnitsystem

Function ProUnitsystemUnitGet


Description
Retrieves the unit used by a particular system of units.
Replacement in Object TOOLKIT: pfcUnitSystem::GetUnit
Synopsis
#include <ProMdlUnits.h>
ProErrorProUnitsystemUnitGet(
ProUnitsystem* system
/* (In)
The system of units.
*/
ProUnitType type
/* (In)
The type of unit to retrieve.
*/
ProUnititem* unit
/* (Out)
The unit.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_E_NOT_FOUNDsystem does not contain a unit of the requested type.

Manual References:

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

Sample Code References:

  1. pt_userguide ( UgSolidInfoMass.c )
  2. pt_userguide ( UgSolidInfoMass.c )
  3. pt_userguide ( UgSolidInfoMass.c )
  4. pt_userguide ( UgSolidInfoMass.c )