I got the script for DXF generating of individual artwork written by @B Bruekers script is as follows-
l_cnvFiles = nil designName = axlCurrentDesign() foreach(filmName axlGetParam("artwork")->groupMembers f = strcat("DXF_" filmName) p = axlDMOpenFile("ALLEGRO_CNV" f "w") fprintf(p "#This is the Layer Conversion File used for\n") fprintf(p "#importing DXF data into Allegro/APD.\n\n") fprintf(p "#CLASS!SUBCLASS!DXF_LAYER!\n\n") foreach(layer axlGetParam(strcat("artwork:" filmName))->groupMembers layerStr = parseString(layer "/") fprintf(p "%s!\n%s!%s!\n\n" car(layerStr) cadr(layerStr) strcat(car(layerStr) "_" cadr(layerStr))) ) fprintf(p "#END\n") push(get_filename(p) l_cnvFiles) axlDMClose(p) sprintf(cmd "a2dxf -$ -u MM -a 4 -f 14 -c L \"%s.cnv\" \"%s/%s_%s.dxf\" %%s" f getWorkingDir() designName filmName) axlRunBatchDBProgram("Creating DXF File" cmd ?warnProgram t ?noExitMsgs t) ) errset(mapcar('deleteFile l_cnvFiles) t)
but I need to add two more option into the a2dxf function which are "export filled pads & fill solid shapes and rectangles" as per below pic-
can someone help me how can i do that?
Take a look at the a2dxf.txt file in ...\share\pcb\batchhelp.
You probably want to add -s and -p optional arguments.
Thanks a lot,
Yes by adding -s and -p my requirement is fulfilled.
Hello @eDave i want to create a folder in which all dxf export will be done. where i need to change in the script.
sprintf(cmd "a2dxf -$ -u MM -a 4 -f 14 -c L \"%s.cnv\" \"%s/%s_%s.dxf\" %%s" f dxfOutputFolder designName filmName)
Where dxfOutputFolder is your dxf export folder.
Thanks for the response but it doesn't work. I have tried with CreateDir function but it doesn't work either.