Object ProMath

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>
ProErrorProMathExpressionEvaluate(
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
*/
ProUnititem * unit
/* (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
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_NOT_VALIDThe expression is not valid and cannot be evaluated.

Manual References:

  1. Core: Solids, Parts, and Materials: Evaluating Mathematical Expressions for a Solid
  2. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0
  3. Creo Simulate: Items: Creo Simulate Expressions
  4. Creo Simulate: Items: Creo Simulate Matrix Functions
  5. Creo Simulate: Items: Creo Simulate Vector Functions
  6. Creo Simulate: Items: Creo Simulate Beams: Sections, Sketched Sections, and General Sections
  7. Creo Simulate: Items: Beam Orientations
  8. Creo Simulate: Items: Creo Simulate Mass Properties
  9. Creo Simulate: Items: Contact Interface