var savefile=new File("~/Desktop/exp.dxf"); var exportOptions = new ExportOptionsAutoCAD(); exportOptions.scaleLineweights = true; app.activeDocument.exportFile(savefile, ExportType.AUTOCAD, exportOptions);