Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

BOM columns header in Apprentice

nedeljko.sovljanski
Advocate

BOM columns header in Apprentice

nedeljko.sovljanski
Advocate
Advocate

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

0 Likes
Reply
234 Views
3 Replies
Replies (3)

WCrihfield
Mentor
Mentor

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

EESignature

(Not an Autodesk Employee)

nedeljko.sovljanski
Advocate
Advocate

Hi @WCrihfield thank for reply.

0 Likes

A.Acheson
Mentor
Mentor

Hi @nedeljko.sovljanski 

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

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes