Autodesk Vault ProfessionalVault API

FileRelationship Constructor

Autodesk.DataManagement.Client.Framework.Vault.Currency.EntitiesFileRelationship

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

NameDescription
parentThe parent in a parent-child relationship (ie. an assembly is a parent to a part)
childThe child in a parent-child relationship (ie. a part is a child of an assembly)
childPathThe path of the child file. The may be a relative path or an absolute path, depending on how the host application maintains relationships
refIdAn ID that uniquely identifies the parent-child relationship
relationshipTypeAn 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"
isAttachmentDetermines whether or not the relationship is a manual one (ie. an attachment) vs a true dependency
pathChangedDetermines 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.

See Also