Category Creo Parametric fundamentals, Object ProUnit

Function ProUnitCreateByExpressionAndType


Description
Creates a derived unit.
Synopsis
#include <ProMdlUnits.h>
ProErrorProUnitCreateByExpressionAndType(
ProMdl mdl
/* (In)
The model handle.
*/
ProName unit_name
/* (In)
The unit name.
*/
ProPath expression
/* (In)
The unit expression.
*/
ProUnitType type
/* (In)
unit type
*/
ProUnititem* new_unit
/* (Out)
The new unit handle. May be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_E_FOUNDThe unit_name is already used.

Manual References:

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