Save each Configuration to new CAD file

Hi guys ,

I am working on a part which consists of two or more configuration, what i need is to save each configuration as a separate CAD file

for Eg: if the part has 2 Configuration then we need to have two cad file to be generated....

is there any way to do this!!!!!!!!!

SolidworksApi/macros