Josh Hixon

How does Solidworks get BOM QTY from assembly?

Discussion created by Josh Hixon on Dec 16, 2019
Latest reply on Dec 16, 2019 by Brian Graves

Is there an easy to access member that allows me to see the number of times any given componant is found in the assembly? How does the solidworks BOM find this information? I currently do this by traversing the assembly and keeping a count for each time the componant appears in the assembly, surley there is a more efficiant way to do this?


I am trying to update a BOM macro( Actually not a macro anymore it is part of a add-in) that gets standard part qty from assembly and gets each unique weldment material totalqty from componants containing weldments and compiles it into a CSV BOM for ERP import. 


This macro functions okay, but it runs slow and I think that is because it loops through the assembly so many time counting each componant.