Library | Package Java Toolkit

Interface WRelationOwner

package com.ptc.wfc.wfcModelItem;

public interface WRelationOwner
  extends com.ptc.pfc.pfcModelItem.RelationOwner



Description

An object of type can have relations assigned to it. This is an extension of RelationOwner
Direct Known Subclasses:
WModelItem, WModel



Method Summary
ParamValueWithUnitsEvaluateExpressionWithUnits (String Expression, /*optional*/ Boolean Consider_units)
     Use Creo Parametric to evaluate the given relations-based expression.
/*optional*/ stringseqGetRelationConstraints ()
    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.
booleanUnitsUsed ()
     Are Units used in the Relation.
voidUseUnits (boolean Use)
     Makes the relation units sensitive

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner
DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression

Method Detail

GetRelationConstraints

/*optional*/ stringseqGetRelationConstraints ()


    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


UnitsUsed

booleanUnitsUsed ()


     Are Units used in the Relation.

Exceptions thrown (but not limited to):

XToolkitNotFound - The post regeneration relation set was not found.


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


UseUnits

voidUseUnits (boolean Use)


     Makes the relation units sensitive

Exceptions thrown (but not limited to):

XToolkitNotFound - The post regeneration relation set was not found.


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


EvaluateExpressionWithUnits

ParamValueWithUnitsEvaluateExpressionWithUnits (String Expression, /*optional*/ Boolean 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.