Library | File

Class wfcWRelationOwner

# include <wfcModelItem.h>

class wfcWRelationOwner
 : public virtual pfcRelationOwner
{
    xaideclare(wfcWRelationOwner)
    ...
};



Description

An object of type can have relations assigned to it. This is an extension of pfcRelationOwner
Manual References:
Overview of Creo Object TOOLKIT C++: Casting of Creo Object TOOLKIT C++ pfc Classes to wfc Classes
Direct Known Subclasses:
wfcWModelItem, wfcWModel



Method Summary

wfcParamValueWithUnits_ptrEvaluateExpressionWithUnits (xrstring Expression, optional xbool Consider_units)
Use Creo Parametric to evaluate the given relations-based expression.
optional xstringsequence_ptrGetRelationConstraints ()
Obtains the constraints applied to a given relation set. Constraints may be assigned when one or more parameters of the set is governed by an external parameter file. They act as read-only relations.
xboolUnitsUsed ()
Are Units used in the Relation.
voidUseUnits (xbool Use)
Makes the relation units sensitive


Methods Inherited from Class pfcRelationOwner:

DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression



Method Detail

optional xstringsequence_ptrGetRelationConstraints ()

Obtains the constraints applied to a given relation set. Constraints may be assigned when one or more parameters of the set is governed by an external parameter file. They act as read-only relations.
Returns:
List of constraints assigned to the parameters in the given relation set



xboolUnitsUsed ()

Are Units used in the Relation.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - The post regeneration relation set was not found.


Manual References:
Relations: Accessing Relations
Returns:
Boolean indicating whether units are used or not



voidUseUnits (xbool Use)

Makes the relation units sensitive

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - The post regeneration relation set was not found.


Manual References:
Relations: Accessing Relations, Relations: Accessing Relations
Parameters:
Use
Returns:



wfcParamValueWithUnits_ptrEvaluateExpressionWithUnits (xrstring Expression, optional xbool Consider_units)

Use Creo Parametric to evaluate the given relations-based expression.
Manual References:
Relations: Accessing Relations, Relations: Accessing Relations
Parameters:
Expression
Consider_units
Returns:
The calculated value of the expression.