Quantity Macro

The only thing I can think of is that I am using the same part in two different subassemblies and
the last one evaluated “WINS” so to speak
BOM Top.jpg
For I am using the Flexible coupling, and the other “Yellow” items above, in two diff assemblies.


But as for the clamp
I know that the SW BOM Qty is right I need 20 total
but I suppressed one Sub assembly that has 5 in it
the macro counts 25
BOM Clamp.jpg
something is not right.

Old thread but I have tried to figure out little bit the same problem…why excluding from bom is not working…What I found is that ALL models need to be fully resolved, then it MIGHT work. So, there can be no lightweight or anything in use. Can’t make it to work thought.

EDIT, this seem to work (at least for me):
If swComp.ExcludeFromBOM = 1 Then (VBA, for vb.net nothing seems to work :-()

EDIT2, this seem to work, redim is the key:
https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/home?content=swym:prd:R1132100503382:qnaquestion:39C7re_0T2WlTES3NbbR5w