Accessing Relations
In the VB API, the set of relations on any model or model item is represented by the IpfcRelationOwner interface. Models, features, surfaces, and edges inherit from this interface, because each object can be assigned relations in Creo Parametric.
Methods and Properties Introduced:
The method
IpfcRelationOwner.RegenerateRelations() regenerates the relations assigned to the owner item. It also determines whether the specified relation set is valid.
The method
IpfcRelationOwner.DeleteRelations() deletes all the relations assigned to the owner item.
The property
IpfcRelationOwner.Relations returns the list of initial relations assigned to the owner item as a sequence of strings.
The method
IpfcRelationOwner.EvaluateExpression() evaluates the given relations-based expression, and returns the resulting value in the form of the
IpfcParamValue object. Refer to the section
The ParamValue Object in the section
Dimensions and Parameters for more information on this object.