Jimijames
Mechanical
- Jan 17, 2002
- 20
Our company uses an Excel template to submit BOM requests (trust me...this is a SW question, not excel). The only required info is the part number and quantity. I wrote a macro to assign custom properties to parts and assemblies, one of them being the part num. I would like write an excel macro to attach to the open Solidworks assembly and then grab the part num custom prop and qty of the child parts/subassemblies. For example, if there are 3 of part number 111-1234 in an assembly, I want to grab that p/n and the fact that there are 3 occurances of the part.
I think I have all of it figured out except for counting the children. Any hints or tricks do do this with VBA? Is there any way to access the "quantity" in the SW BOMs without actually creating one? I want to have this new macro work on assemblies and not require users to create a drawing and insert a BOM.
I think I have all of it figured out except for counting the children. Any hints or tricks do do this with VBA? Is there any way to access the "quantity" in the SW BOMs without actually creating one? I want to have this new macro work on assemblies and not require users to create a drawing and insert a BOM.