API 설명서 > Miscellaneous > Object ProMath > Function ProMathExpressionEvaluate
Function ProMathExpressionEvaluate
Description
Evaluates given math expression in the context of given solid. The expression may include parameters, dimensions, embedded functions, predefined constants, etc.
Synopsis
#include <ProMath.h>
ProMathExpressionEvaluate
(
ProSolid pro_solid
/* (In)
Handle of Creo Parametric model (part/assembly).
*/
const wchar_t * expression
/* (In)
The math expression string.
*/
double * result
/* (Out)
The pointer to calculated result. Can be NULL if not interested. If this argument is NULL, this function can be used to
*/
/* (Out)
The pointer to the unit item of calculated result. If the expression is unitized, use this output to convert the result to another unit, if desired. Can be NULL if not interested.
*/
)
Returns
The function succeeded.
One or more arguments was invalid.
The expression is not valid and cannot be evaluated.
User Guide References
도움이 되셨나요?