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