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 vb.net 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.
SolidworksApi/macros