Macro editing

Hello,

 

I`ve found a macro exporting sheet metal to dxf and was able to edit by myself to different macros (macros text files attached) to export dxf files respectively with a file name or with a configuration name. But now I want the macro to export with a configuration name, but to export all the configurations of the part, not only active configuration which is a case now, but can`t find what I could/should edit to make that. Can somebody help me edit my macro in order to export to dxf all configurations of the part at once?