Autodesk Vault ProfessionalVault API

UpdateItemFileAssociations Method

Autodesk.Connectivity.WebServicesItemService

Updates which files are associated with the specified Item Revision

Required Permissions

ItemEdit

Syntax

public Item UpdateItemFileAssociations(
   System.long itemRevId,
   System.long primary,
   System.bool isPrimarySubComp,
   System.long[] secondary,
   System.long[] stdComp,
   System.long[] secSubComp,
   System.long[] tertLinks
)
Public Function UpdateItemFileAssociations( _
   ByVal itemRevId As System.Long, _
   ByVal primary As System.Long, _
   ByVal isPrimarySubComp As System.Boolean, _
   ByVal secondary() As System.Long, _
   ByVal stdComp() As System.Long, _
   ByVal secSubComp() As System.Long, _
   ByVal tertLinks() As System.Long _
) As Item

Parameters

NameDescription
itemRevIdThe item revision Id of the item to update
primary
isPrimarySubComp
secondaryAn array of IDs of the secondary Vault Files. Pass null to specify no secondary files.
stdCompAn array of IDs of the secondary Vault Files. Pass null to specify no secondary files.
secSubCompAn array of IDs to the standard components. Pass null to specify no standard components.
tertLinksAn array of IDs to the standard components. Pass null to specify no standard components.

Return Value

An editable Item containing the changes. Call a commit function, such as UpdateAndCommitItems, to finalize the changes.

See Also