Automate Export

I'm trying to use the Solidworks API to automate saving .sldprt with several configurations out to separate .dxf files.  Does anyone have an example of how to do this?

SolidworksApi/macros