Message 1 of 2
Export Assembly Bom item number to a custom i property. only works in structure Bom (Needs to work with all parts only Bom)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can some make this work for all parts Not just structured parts (I need this to work with content center parts also.
thank you,
Dim app As Inventor.Application = ThisApplication Dim doc As AssemblyDocument = app.ActiveDocument Dim compDef As AssemblyComponentDefinition = doc.ComponentDefinition Dim oRow As BOMRow For Each oRow In compDef.BOM.BOMViews(2).BOMRows '2 runs on the structured BOM ... may try 1 or 3 if you don't get the desired results For i = 1 To oRow.ComponentDefinitions.count iProperties.Value(oRow.ComponentDefinitions(i).Document.DisplayName, "Custom", "Item#") = oRow.ItemNumber Next Next