How get assembly and part info quickly - API

Is there a way to get assembly and part data quickly from within SW? I have tried the traverse assembly method but it is slow.

I want something that is quick, ie a couple seconds to refresh, similar to creating a indented bom at the top level.

Key data required:

  • Part number
  • Config name
  • Custom properties
  • Mass properties
SolidworksApi macros