Category Parameters and relations, Object ProRelation

Function ProRelationEvalWithUnits


DEPRECATED: Since Creo 8.0
SUPERSEDED BY: ProRelationEvalWithUnitsRefResolve
Description
Evaluates the supplied right-hand side of a typical expression (lhs = rhs) and returns the value in the form of a parameter value.
Replacement in Object TOOLKIT: wfcWRelationOwner::EvaluateExpression
Synopsis
#include <ProRelSet.h>
ProErrorProRelationEvalWithUnits(
ProRelset* p_relset
/* (In)
The relation set
*/
ProLine rhs_expr
/* (In)
The right-hand side of any relation line in the relation set
*/
ProParamvalue* p_value
/* (Out)
The evaluated result in the form of a parameter value
*/
ProUnititem* units
/* (Out)
The units of the evaluated result
*/
ProBool consider_units
/* (In)
Specifies if units should be considered
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully evaluated the expression.
PRO_TK_BAD_INPUTSOne or more inputs is invalid
PRO_TK_GENERAL_ERRORAn error occurred and the function failed.

Manual References:

  1. Core: Relations: Relations
  2. Technical Summary of Changes for Creo 11.0.0.0: Functions superseded from Creo 1.0 to Creo 11.0

Sample Code References:

  1. pt_examples ( TestRelation.c )