Sheet Metal part to DXF - Macro Needed ?

Hello,

I have a macro that convert "slddrw" to DXF/DWG/PDF file.

I cannot use that macro on a "sldprt" file !!!

I manualy save it (sldprt - sheet metal):

1. "Save as DXF"

2. Mark "Forming tools"

3. the 3d model shown on a 2d page then i press "Save"

I want to do all these steps in one macro Click.

P.S: tryed recording my macro of my steps but when i run it (on the same part), there are errors

SolidworksApi macros