Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BOM columns header in Apprentice

3 REPLIES 3
Reply
Message 1 of 4
nedeljko.sovljanski
154 Views, 3 Replies

BOM columns header in Apprentice

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

3 REPLIES 3
Message 2 of 4

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)

Message 3 of 4

Hi @WCrihfield thank for reply.

Message 4 of 4

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report