You are here:

AutoCAD/creating a lisp routine to make pdfs

Advertisement


Question
I am trying to create a lisp routine that will create a pdf to certain sized sheets preset through the options and then have it saved to a location of the user's choice. how do i get the dialog box to display so i can select the folder location that i want to save the pdf in or create the folder if needed? I will provide the lisp routine that i am currently testing. any help will be appreciated. im a beginner at lisp routines fyi.

(defun c:pdf17  () (command "plot" "y" "" "dwg to pdf.pc3" "ansi b (11.00 x 17.00 inches)" "inches" "landscape" "no" "extents" "fit" "center" "yes" "esa hp 1050c style table.ctb" "yes" "yes" "no" "no" pause "yes" "yes")(prin1))

Answer
You might try downloading a free trial of Plot2000, it allows you to create AutoCAD plot macros like this much easier and it's pretty cheap.  It also supports batch plotting.  I'm a bit biased, though (I wrote it).  See www.plot2000.com for more info.

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott Cook

Expertise

I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!

Experience

Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com. PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.

©2012 About.com, a part of The New York Times Company. All rights reserved.