Extracting Bill of Materials

I'm looking for an API program that will extract specifc columns of Bill of Materials on a drawing to a CSV file. If someone could point me in the right direction with a simular program it would be greatly appreciated. Thank you

SolidworksApi macros
Answers 4
AW
AW 2011-09-27 Best Answer

After you select your BOM in a drawing you can do a File > Save As to a csv file.

You can also create a custom BOM with just the columns you want to save out.

I am assuming you already know that and are looking to just pull specific columns out of a batch of files.

Cheers,

Anna

SF
SF 2011-09-27

The BOM structure contains columns that I don't want in the CSV file and also doesn't contain information that is needed in the file. I need to be able to control the information that is written to the csv file. I'm looking to produce this file in a format that I don't have to edit using a text editor. I'm looking for the code that will show me how to select and drill down to the BOM information from there I should be able produce a program to create the file I need.

Thank you Anna

RS
RS 2011-09-27

http://www.esoxrepublic.com/freeware/BOMtoClipboard.php

You can dissect this macro and learn how to access a BOM and get its parts.

SF
SF 2011-09-27

I should be able to take it from there.

Thank you Roland