API 文件集 > Creo Parametric fundamentals > Object ProUnit > Function ProUnitInitByExpression
Function ProUnitInitByExpression
Description
Returns a ProUnititem given a unit-based expression, like "N/m2".
Replacement in Object TOOLKIT:
Synopsis
#include <ProMdlUnits.h>
ProUnitInitByExpression
(
ProMdl mdl
/* (In)
The model owning the units.
*/
ProPath expression
/* (In)
The unit expression.
*/
/* (Out)
The unit item.
*/
)
Returns
The function succeeded.
One or more arguments wasinvalid.
The expression cannot be parsed.
這是否有幫助?