Working with EPDM BOM's

Hello,

Retrieving and reading the BOM is all very simple.

My code is basically the same as used in the post https://forum.solidworks.com/docs/DOC-1148

The BOM I create is basically artificial, With Quantities modified based on other inputs.

For my operations I need to understand their level in the tree, when getting the computed BOM it returns all items in a flat tree.

This leaves it impossible to tell the hierarchy and where sub drawings are used. This really becomes an issue when a part is used in as a sub assembly and also in the Main assembly, as I can only detect the part not the location is in the tree.

Is there a way to either detect what the hierarchy is, or the get top Level BOM?

Thanks for your help



Seth

SolidworksApi macros