EntityRelationship Constructor
Constructs an instance of a EntityRelationship object
Syntax
public EntityRelationship(
IEntity parent,
IEntity child,
System.bool isAttachment,
System.string relationshipType,
System.string refId
)Public Function New( _
ByVal parent As IEntity, _
ByVal child As IEntity, _
ByVal isAttachment As System.Boolean, _
ByVal relationshipType As System.String, _
Optional ByVal refId As System.String _
)Parameters
| Name | Description |
|---|---|
| parent | The parent in a parent-child relationship (ie. an assembly is a parent to a part) |
| child | The child in a parent-child relationship (ie. a part is a child of an assembly) |
| isAttachment | Determines whether or not the relationship is a manual one (ie. an attachment) vs a true dependency |
| relationshipType | An option string which identifies the type of relationship. It is often the name of the application that created the relationship. For example, in the case of an Assembly that is the parent of a Part, the relationshipType will be "INVENTOR" |
| refId | An ID that uniquely identifies the parent-child relationship |