Finaly i have something to give to other great persons here
From my office there was the question to do all export actions from a part/assembly with one macro button. With help from this forum I have a macro what saves as sheet metal - dxf, step and the belonging drawing file as PDF.
What I like to add is that only a DXF is saved when it is a part and it is a sheet metal. With single body at once, with multibody all configurations starting with Flat (Flat1, Flat2 ......) One of multi DXF file doesn't mather.
In Future it would be nice if it can do this actions wit all the files in a directory on its own or taskscheduler or with all the files of an open (top)assembly
Let me know what you think of it and how i can make this even better and with cleaner programming. My programming skils are record, copy and adapt little changes:( Maybe it will come...