Autodesk Vault ProfessionalVault API

AssignComponentToItem Method

Autodesk.Connectivity.WebServicesItemService

Assign a component to an item revision

Syntax

public Item AssignComponentToItem(
   System.long itemRevId,
   System.long compId
)
Public Function AssignComponentToItem( _
   ByVal itemRevId As System.Long, _
   ByVal compId As System.Long _
) As Item

Parameters

NameDescription
itemRevIdThe revision id of the item to link to
compIdThe id of the component to link the item to

Return Value

Either an uncommitted or committed item depending on the type of link created

Remarks

If a primary link was created the client should update the item and then commit it. If the returned item is uncommitted the client can either commit the change or undo the change.

See Also