Everything works now, except for saving the files to the current directory.
Create a new Adobe PDF for Batch Plotting PC3.
---------------------------------------------------------------------------
1. Create a new Adobe PDF for Batch Plotting PC3.
2. Type plot.
3. Select the new PC3.
4. Click on the Properties box to the right.
5. When the driver Dialog pops up Click on the Device and Document settings tab.
6. Half way down click on "Custom Properties."
7. Near the botton Click on the "Custom Properties" box that will appear.
8. A new dialog box titled "Adobe PDF Document Properties" will pop up.
9. Click on the "adobe PDF Settings" Tab.
10 You should see for setting with pulldowns to the right. Click on the third one down "Adobe PDF output Folder"
11. Select "My Documents\*.pdf" (or create you own folder)
So it looks like you ownly have two options.
1) Selecting a custom folder to save the PDF files w/o the annoying dialog box
2) Have the dialog box pop up the select the saveas name and path.
This is my lisp file that is run from a batch script: (you can see everything that I have tried)
Note: I rename the layout to "." to only save the PDF file by the dwg name. (looking for a better solution here)
I have included the batch plot routine.
;DESCRIPTION:PDFPlot
;***************************
(vl-load-com)
(defun ARCH:PlotToFilePathSet (/ *acad prefs pprefs)
(setq *acad (vlax-get-acad-object))
(setq prefs (vla-get-preferences *acad))
(setq pprefs (vla-get-output prefs))
(vla-put-DefaultPlotToFilePath pprefs (getvar "dwgprefix"))
)
(defun ARCH:PlotToFilePathGet ()
(vla-get-DefaultPlotToFilePath
(vla-get-output
(vla-get-preferences (vlax-get-acad-object))
)
)
)
;;(command "-psetupin" (strcat ARCH#CSTF "Acad.dwt") "*")
;;(vla-put-DefaultPlotToFilePath
;; (vla-get-Output (vla-get-Preferences (vlax-get-acad-object)))
;; (getvar "dwgprefix");;"E:\\Plot"
;; )
;;(getenv "PlotToFilePath")(setenv "PlotToFilePath" "E:\\Plot")
;;(getenv "PlotToFilePath")
;;(setenv "PlotToFilePath" "C:\\Arch_Custom\\PDF")
(ARCH:PlotToFilePathSet)
(vlax-for
layout (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object)))
(setq name (vla-get-name layout))
(progn (if (= name "FullSize")
(vla-put-name layout ".")) ))
;;(setq CurrDwgName (getvar "dwgname"))
;;(setq Fname (substr CurrDwgName 1 (- (strlen CurrDwgName) 4)))
;;(setq name (strcat (getvar "DWGPREFIX") Fname ".pdf"))
(command ".qsave")
(command ".zoom" "e" "limits" "off")
;;(command ".plot" "y" "fullsize" "Adobe PDF.pc3" "Arch D" "i" "l" "n" "w" "0,0" "36,24" "f" "center" "y" "aia standard.ctb" "y" "y" "n" "n" "n" "n" "y")
(command ".plot" "y" "." "Adobe PDF.pc3" "Arch D" "i" "l" "n" "w" "0,0" "36,24" "f" "center" "y" "aia standard.ctb" "y" "y" "n" "n" "n" "n" "y")
(vlax-for
layout (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object)))
(setq name (vla-get-name layout))
(progn (if (= name ".")
(vla-put-name layout "FullSize"))
))
Here is the batch plot script that is written:
SDI 1
(setvar "FILEDIA" 0)
_.open "F:\Jobs\2013\131020\acad\A10-01.dwg"
(load "V:/ARCH/Custom_Architettura/PlotCFG/PDFPlot.lsp")
.qsave
_.close
_.open "F:\Jobs\2013\131020\acad\A10-02.dwg"
(load "V:/ARCH/Custom_Architettura/PlotCFG/PDFPlot.lsp")
.qsave
_.close
_.open "F:\Jobs\2013\131020\acad\A10-03.dwg"
(load "V:/ARCH/Custom_Architettura/PlotCFG/PDFPlot.lsp")
.qsave
_.close
_.open "F:\Jobs\2013\131020\acad\A10-04.dwg"
(load "V:/ARCH/Custom_Architettura/PlotCFG/PDFPlot.lsp")
.qsave
_.close
_.open "F:\Jobs\2013\131020\acad\A10-05.dwg"
(load "V:/ARCH/Custom_Architettura/PlotCFG/PDFPlot.lsp")
.qsave
_.close
_.open "F:\Jobs\2013\131020\acad\A10-06.dwg"
(load "V:/ARCH/Custom_Architettura/PlotCFG/PDFPlot.lsp")
.qsave
_.close
_.open "F:\Jobs\2013\131020\acad\A10-07.dwg"
(load "V:/ARCH/Custom_Architettura/PlotCFG/PDFPlot.lsp")
.qsave
_.close
_.open "F:\Jobs\2013\131020\acad\A10-08.dwg"
(load "V:/ARCH/Custom_Architettura/PlotCFG/PDFPlot.lsp")
.qsave
_.close
(setvar "FILEDIA" 1)
SDI 0
(ARCH:BatchPlotMsg)
[\code]