Category Creo Parametric fundamentals, Object ProUnit

Function ProUnitModify


Description
Modifies 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::Modify
Synopsis
#include <ProMdlUnits.h>
ProErrorProUnitModify(
ProUnititem* unit
/* (In)
The unit.
*/
ProUnitConversion* conversion
/* (In)
The conversion factor for the unit.
*/
ProUnititem* ref_unit
/* (In)
The reference unit for the unit.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_CANT_MODIFYThe unit cannot be modified because it is referenced from the principal system of units or it is referenced from ref_unit.

Manual References:

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