Macro to export multiple configurations to STL

Hello!

I have a Solidworks file with 500+ configurations and would like to save each configuration as an STL. Where can I find a macro that will help me accomplish this task? Many thanks!

SolidworksApi macros