Message 1 of 3
Get BOM details
Not applicable
05-15-2013
09:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am trying to get the BOM Structured view in a datagridview using VB.Net Is there a sample of how to get the BOM I have tried the below code, it stops at the component definition
Dim oDoc As AssemblyDocument
Dim oBOM As BOM oDoc = InventorStdAppln.ActiveDocument
oBOM = oDoc.ComponentDefinition.BOM
oBOM.StructuredViewFirstLevelOnly = False
oBOM.StructuredViewEnabled = True
Dim oBOMView As BOMView
oBOMView = oBOM.BOMViews.Item("Structured")
Dim i As Long
For i = 1 To oBOMView.BOMRows.Count
Dim oRow As BOMRow = oBOMView.BOMRows.Item(i)
Dim oCompDef As PartComponentDefinition = oRow.ComponentDefinitions.Item(i)
Dim oPropSet As PropertySet = oCompDef.Document.PropertySets.Item("Design Tracking Properties")
Next
Thank You