Author Topic: plotting dwg in pdf  (Read 1381 times)

0 Members and 1 Guest are viewing this topic.

cadplayer

  • Bull Frog
  • Posts: 390
  • Autocad Civil3d, OpenDCL.Runtime, LISP, .NET (C#)
plotting dwg in pdf
« on: February 15, 2014, 04:16:29 AM »
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
Code: [Select]
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
Code: [Select]
PrintPDF.scr
(if (load "C:\\PDFv2.lsp")
  (c : pdf)
  )
ZOOM
E
QSAVE
CLOSE

the LISPfile looks like this
Code: [Select]
(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" )
      )
  )
« Last Edit: February 15, 2014, 10:07:28 AM by cadplayer »