Category Creo Parametric fundamentals, Object ProUnit

Function ProUnitInit


Description
Retrieves the unit structure for a basic unit.
Replacement in Object TOOLKIT: pfcSolid::GetUnit
Synopsis
#include <ProMdlUnits.h>
ProErrorProUnitInit(
ProMdl mdl
/* (In)
The model owner.
*/
ProName unit_name
/* (In)
The name of the 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_FOUNDThe indicated unit name does not exist in the model.

Manual References:

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

Sample Code References:

  1. pt_geardesign ( GearDesignUI.c )