FileRelationship Constructor
Constructs an instance of a FileRelationship object
Syntax
public FileRelationship(
FileIteration parent,
FileIteration child,
System.string childPath,
System.string refId,
System.string relationshipType,
System.bool isAttachment,
System.bool pathChanged
)Public Function New( _
ByVal parent As FileIteration, _
ByVal child As FileIteration, _
ByVal childPath As System.String, _
ByVal refId As System.String, _
ByVal relationshipType As System.String, _
ByVal isAttachment As System.Boolean, _
ByVal pathChanged As System.Boolean _
)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) |
| childPath | The path of the child file. The may be a relative path or an absolute path, depending on how the host application maintains relationships |
| refId | An ID that uniquely identifies the parent-child relationship |
| 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" |
| isAttachment | Determines whether or not the relationship is a manual one (ie. an attachment) vs a true dependency |
| pathChanged | Determines whether or not the location of the parent or child in the relationship has changed. If so, then the parent needs to have it's references updated. |