API Documentation > Creo Parametric fundamentals > Object ProUnit > Function ProUnitCreateByExpressionAndType
Function ProUnitCreateByExpressionAndType
Description
Creates a derived unit.
Synopsis
#include <ProMdlUnits.h>
ProUnitCreateByExpressionAndType
(
ProMdl mdl
/* (In)
The model handle.
*/
ProName unit_name
/* (In)
The unit name.
*/
ProPath expression
/* (In)
The unit expression.
*/
/* (In)
unit type
*/
ProUnititem* new_unit
/* (Out)
The new unit handle. May be NULL.
*/
)
Returns
The function succeeded.
Model is in read-only state.
One or more arguments was invalid.
The unit_name is already used.
User Guide References
Was this helpful?