How can I output a top level BOM that totals all of the components in the top level as well as all components in sub assemblies?

We are currently manually creating BOM outputs and then sorting and adding quantities in Excel. How can I use API and Macro's to do this? We typically have a top level assembly with several repeating sub assemblies below the top level. Our purchasing department is requiring us to supply a BOM with a single line per component with a total quantity for the top level assembly. The current way we are doing it is prone to mistakes.

BTW, I know NOTHING about API. Are there any textbooks/reference manuals out there for Solidworks API?

We are currently running SW 2019 on a combination of Windows 7 and 10 on our design computers.

Any help would be greatly appreciated.

SolidworksBill Of Materials
Answers 13
DL
DL 2021-03-26 Best Answer

Unless I'm misunderstanding, I think you're over complicating it with talk of macros and APIs.

comment imagecomment image
AL
AL 2021-03-26

I vouch for this, I've been using CustomTools for over 8 years.

TH
TH 2021-03-26

Hi Scott

What ERP system do you export to?

You should check out CUSTOMTOOLS for sure - I will guarantee you'll be surprised - check the Export videos alone:

CUSTOMTOOLS for SolidWorks - YouTube 

Gold Partner with a ton of greatness: https://www.solidworks.com/partner-product/customtools 

Tim

AL
AL 2021-03-26

I'm guessing his bought components are on a list generated by another department, to ensure that the components are ordered before the project is sent to the floor, which is why he can exclude them from the BOM. That is how we proceed for most of our bought components(excluding hardware of course)

JB
JB 2021-03-26

Scott Monday wrote:

Josh, on this we usually will click properties and select the "Exclude from BOM" option.

Are you saying that you select each part of the cylinder subassembly and exclude them from the BOM?  Because that's definitely not what you want.

Selecting "Hide" in the cylinder subassembly's configuration properties makes SW treat the subassembly as a "Part" for the purposes of a "Parts only" BOM.  This means that the cylinder's component parts are automatically not shown in the BOM and instead a line item shows up for the cylinder subassembly in a "parts only" bom.  Way less work.

AL
AL 2021-03-26

Oh, I see, that's gotta be a pain.

I thought he wanted to see a BOM listing all the sub-assemblies with their components inside and their quantities.

SM
SM 2021-03-26

Josh, on this we usually will click properties and select the "Exclude from BOM" option.

SM
SM 2021-03-26

Exactly! Purchasing doesn't even want to see the sub assemblies. They only care about the purchased and machined components and the total number of each.

JB
JB 2021-03-26

Alex Lachance wrote:

Everyone is misunderstanding.


What you want is an indented BOM, so the option below the one Dave Laban posted.

Actually, what he wants is absolutely NOT an indented BOM.  An indented BOM will list qty 5 of the subassembly, then underneath will list qty per subassembly on each line item.  Purchasing doesn't care how many subassemblies or how deep they are.  Purchasing just wants a total list of how many of each thing they need to buy.  Right now he's manually multiplying, consolidating, and adding up the indented BOMs into a document for purchasing.  

AL
AL 2021-03-26

Thanks for the tip Josh, that might make our exporting lighter, as we generate a BOM to export to our ERP

AL
AL 2021-03-26

Everyone is misunderstanding.


What you want is an indented BOM, so the option below the one posted.

JB
JB 2021-03-26

For every subassembly that you wish to display as one line item for purhcase (like cylinders) select this option in the configuration properties of the subassembly:

comment imagecomment image
SM
SM 2021-03-26

The problem with Parts only is it will not export purchased sub-assemblies such as cylinders.