Macro to Create Folders by parts' volume/weights

I got a large imported assembly through Parasolid with over 2000 parts. I would like to create folders in the assembly FeatureManager with similar parts so that I could simplify this assembly by suppressing the folders with insignificant components scattered all over.

Currently I use Assembly Visualisation’s Mass/volume property to bulk select them and create folders; this is a manual process which takes a long time to complete.

I’m sure someone has thought about this process before. Has anyone made a macro to automate this process? 

SolidworksApi/macros