Macro to export ALL configurations as DXF file type

Hi guys, 

I am looking for a Macro that can export ALL configurations as a DXF file type. (I think any 2D drawing file will work but preferably DXF) 

Currently, from the forums I found a macro from this link: https://forum.solidworks.com/message/1031201?q=How%20to%20save%20all%20configurations which saves all the configurations as a .SLD (3D file) 

This Macro mentioned above works great, and I am wondering if it can be applied to export the files as DXF, here is a snap shot for reference:  

I want to export the 2D drawing of the current view shown in the snap shot above, of each configuration, saved as a DXF file preferably. 


If someone could help modify, or write new code, this would be greatly appreciated. 

Thanks in advance.

SolidworksApi/macros