Hi!
My plan is to plot some dwg-files and there Layouts with starting a batchCodefile(Print-PDF.bat), which is in the path where it is all dwgfiles
Print-PDF.bat
FOR %%G in (*.DWG) DO "C:\Program Files\Autodesk\AutoCAD Civil 3D 2013\acad.exe" "%%G" /b
PrintPDF.scr
The problem is it is opening all dwgfiles correctly, but it donīt run the script file
PrintPDF.scr
(if (load "C:\\PDFv2.lsp")
(c : pdf)
)
ZOOM
E
QSAVE
CLOSE
the LISPfile looks like this
(defun c:PDF ( / )
;; Print layouts as pdf-file
;; you have to have searchpath c:\pdfplot there pdf-files be saved
(foreach layoutname (layoutlist)
(command "._layout" "set" layoutname)
(command "_plot" "_y" layoutname "PDFcreator.pc3" "A1" "Millimeters" "Landscape" "No"
"_e" "1000=1" "_c" "_y"
;;; "A1.ctb"
""
"_y" "_n" "_n" "_n" "_n" "_n" "_y" )
)
)