Hi Guys,
As far as i understand sw does not allow access to the boom list in the assembly file.
Actually what I want to do is make a selection in the boom list in the assembly and run the macro. The result is that the part you select is excluded from the material list. not from an assembly file technicalresin page.
not by selecting from the element tree or 3d part, but by selecting from the Bom list.
Is this possible?
You can reflect the BOM to a dialog window and interact with.
But why do you want to prevent the user interaction in design tree or graphical area?
I apologize for my late response. Actually, I can do what I want by selecting the part in the list, right clicking, selecting properties, excluding from the material list, but I want to reduce the number of clicks.
You can get the selected component(s), and using API set those components to be excluded from the BOM using swComp.SetExcludeFromBOM2.
1 Like