Hello,
Does someone know where columns header titles stored for BOM? I have asm file with customized BOM table so I need to get all fields used in that table.
Best regards
Hi @nedeljko.sovljanski. The BOM and BOMView API objects within an AssemblyComponentDefinition do not really have 'columns', they only have rows. The columns shown in the dialog are just part of Inventor's user interface. All of the things you see in those rows are either properties of the BOMRow object itself, or properties of the ComponentOccurrence object that the row references (and the Document that the ComponentOccurrence references). So, in order to get to those values, if going through the BOM, you have to get the first ComponentDefinition in the BOMRow.ComponentDefinitions collection, then go from there to dig into its natively held properties. There is no way to navigate that 'visual table' by code. A PartsList API object within a DrawingDocument on the other hand, does have both columns and rows, and can be easily navigated by its columns if needed.
Wesley Crihfield
(Not an Autodesk Employee)
Are the headings exported from the BOM to excel? Apprentice is read only so having access to the headings wouldn't be of much advantage. What is the end goal? Do you want to reorder the BOM headings? If so doing in e cel would be easier. See this post
Can't find what you're looking for? Ask the community or share your knowledge.