How do I get a list of cut list folders, sorted as they appear in the part's design tree?

I have a part model where the cut list items have been manually ordered. The following two methods return cut list items in a different order than they appear in the design tree.

  • IModelDoc::FirstFeature(), IFeature::GetNextFeature()
  • FeatureManager::GetFeatures()

I need the correct order so that I can determine the item number they will end up with when a cut list table is generated from this model.

I am using SolidWorks 2013 x64 SP3.0.

I would appreciate any help you can offer

Many thanks,

Josh

SolidworksApi macros