Autodesk Vault ProfessionalVault API

CompareItemBOMs Method

Autodesk.Connectivity.WebServicesItemService

Compare the BOMs of two Versions of an Item.

Required Permissions

ItemRead

Syntax

public ItemBOMAndDiff CompareItemBOMs(
   System.long primaryItemID,
   System.long secondaryItemID,
   System.DateTime primaryDate,
   System.DateTime secondaryDate,
   BOMTyp primaryType,
   BOMTyp secondaryType,
   BOMViewEditOptions options,
   System.long[] propertyDefIDs
)
Public Function CompareItemBOMs( _
   ByVal primaryItemID As System.Long, _
   ByVal secondaryItemID As System.Long, _
   ByVal primaryDate As System.Date, _
   ByVal secondaryDate As System.Date, _
   ByVal primaryType As BOMTyp, _
   ByVal secondaryType As BOMTyp, _
   ByVal options As BOMViewEditOptions, _
   ByVal propertyDefIDs() As System.Long _
) As ItemBOMAndDiff

Parameters

NameDescription
primaryItemIDItem containing the primary BOM.
secondaryItemIDItem containing the primary BOM.
primaryDateThe date that the primary BOM is effective.
secondaryDateThe date that the secondary BOM is effective.
primaryTypeThe type of the primary BOM.
secondaryTypeThe type of the secondary BOM.
optionsOptions for viewing the BOM. Multiple options can be joined together.
propertyDefIDsThe properties to compare. If no properties are specified, only BOM links are compared. See table below for a list of additional "reserved" properties to use for the compare.

Return Value

The results of the compare.

See Also