I've 3 configurations in Assembly. I want a macro to Rebuild all 3 configurations

I'd captured 3 configurations in assembly. When I generate models through Driveworks, it doesn't rebuild all 3 configurations. It just rebuilds the last saved configurations. So I want a macro that will rebuild all the 3 configurations and save the ASM.

Ton of Thanks in Advance!

SolidworksApi macros