Autodesk Vault ProfessionalVault API

EntityRelationship Constructor

Autodesk.DataManagement.Client.Framework.Vault.Currency.EntitiesEntityRelationship

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

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)
isAttachmentDetermines whether or not the relationship is a manual one (ie. an attachment) vs a true dependency
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"
refIdAn ID that uniquely identifies the parent-child relationship

See Also