API Documentation > Creo Parametric fundamentals > Object ProUnit > Function ProUnitInitByExpressionAndType
Function ProUnitInitByExpressionAndType
Description
Returns a ProUnititem given a unit-based expression, like "N/m2".
Synopsis
#include <ProMdlUnits.h>
ProUnitInitByExpressionAndType
(
ProMdl mdl
/* (In)
The model owning the units.
*/
ProPath expression
/* (In)
The unit expression.
*/
/* (In)
The unit type
*/
/* (Out)
The unit item.
*/
)
Returns
The function succeeded.
One or more arguments wasinvalid.
The expression cannot be parsed.
User Guide References
Was this helpful?