Share

BOMView Object


Description

The BOMView object represents a view (or an ordering scheme) of the BOM.

Methods

Name Description
Export Method that saves the BOM as viewed in this BOM view to an external file.
Renumber Method that renumbers all rows in the BOM view. If the BOMRowsToRenumber argument is provided, only those rows are renumbered. Applies only to structured and parts only views. This method returns a failure for the model data BOM view.
Sort Method that changes the sort order of items in the BOM view. Applies only to structured and parts only views. This method returns a failure for the model data BOM view.
Sort2 Method that changes the sort order of items in the BOM view. Applies only to structured and parts only views. This method returns a failure for the model data BOM view.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
BOMRows Property that gets the BOMRows enumerator object containing the top level BOM rows.
iAssemblyMemberName Gets and sets the name of the iAssembly member that the BOM view is based on.
ModelStateMemberName Gets the name of the model state member that the BOM view is based on.
Name Property that gets the name of the BOMView.
Parent Property that returns the parent BOM object.
RevisionId Property that returns the GUID that represents the last saved revision of this BOMView.
Type Returns an ObjectTypeEnum indicating this object's type.
ViewType Property that returns the BOM View type. Possible return values are kModelDataBOMViewType (for the 'raw' view), kStructuredBOMViewType (for the structured view) and kPartsOnlyBOMViewType (for the parts-only view).

Accessed From

BOMViews.Item

Samples

Name Description
Using the BOM APIs This sample demonstrates the Bill of Materials API functionality in assemblies.
Exporting the assembly BOM This sample demonstrates exporting the Assembly BOM to an external file.

Version

Introduced in version 10

Was this information helpful?