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

3 REPLIES 3
Reply
Message 1 of 4
GosponZ
466 Views, 3 Replies

BOM

I'm using this code to export bom and it is working good. But here is question. Is it possible to exclude purchased parts from bom?



fileName=ThisDoc.PathAndFileName(False)&".csv"
ThisBOM.Export("Parts Only", fileName&".csv", kTextFileCommaDelimitedFormat)

3 REPLIES 3
Message 2 of 4
adam.nagy
in reply to: GosponZ

Hi,

 

You can either: 

a) export all the info yourself by iterating through the BOM

b) export it using Export() and then modify the created csv file

 

In either case you'd need to iterate through the BOM to find out which items are purchased.

 

Cheers, 



Adam Nagy
Autodesk Platform Services
Message 3 of 4
GosponZ
in reply to: adam.nagy

Hm..

by creating my parts i determne which parts are purchased and those parts i do not need to export in csv file since i'm using them for other purpose later. Just to save me a little bit of time i thought that is possible to add line of code just to exclude purchased parts which has designation in BOM structure .

Message 4 of 4
mslosar
in reply to: GosponZ

There is an example of iterating through the BOM in the programming help file that comes with inventor.

 

It's under Samples>Assemblies>Bill of materials>Using the BOM APIs

 

Least, that's where it is in 2013.

 

As you loop through you should be able to check for the BOM type of a part

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

Post to forums