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