Convert to Bodies

Hi,

I'm using "Convert to Bodies" option to convert the tree structure to a body.

I have so many parts inside a folder. I need to do this for all of them. Any macro is available?

Thank you in advance.

Regards,

Prascena

SolidworksApi/macros