Get top-level only BOM using SOLIDWORKS PDM API

Ho w to get the top-level bom only for the assmebly using PDM API

One way to do this is to:

  • Get the computed bom with this
  • Get all rows with this
  • Each IEdmBomCell has a method called GetTreeLevel that returns the depth of the cell. You are only interested in depth of 0 (top level assembly) and 1 (the immediate children)…
2 Likes