Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlUnitsystemCreate


Description
Creates a new system of units in the model.
Replacement in Object TOOLKIT: pfcSolid::CreateUnitSystem
Synopsis
#include <ProMdlUnits.h>
ProErrorProMdlUnitsystemCreate(
ProMdl mdl
/* (In)
The model handle.
*/
ProUnitsystemType type
/* (In)
The type of the new unit system.
*/
ProName name
/* (In)
The name of the new unit system.
*/
ProUnititem* units
/* (In)
The units for the new system. Should include at most one occurrence of each basic unit type. If a unit of a basic type is missing then a corresponding one is taken from the standard system 'Creo Parametric Default'.
*/
ProUnitsystem* new_system
/* (Out)
The new system of units in the model. May be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_E_AMBIGUOUSThe units argument contains multiple units for a type.

Manual References:

  1. Core: Solids, Parts, and Materials: Solid Units

Sample Code References:

  1. pt_geardesign ( GearDesignUI.c )