Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Plot AutoLISP Problem "Proceed with plot"

wstowe
Advocate

Plot AutoLISP Problem "Proceed with plot"

wstowe
Advocate
Advocate

First day of really making a LISP routine. It was exciting that it actually worked!

 

Except for the very last input.

 

;11X17_PDF

(defun C:p11 ()
(command "-plot" "n" "" "11x17_pdf" "DWG To PDF.pc3" "n" "YES")
(princ)

 

I run the routine in autocad, however the command line keeps asking me the last question of "Proceed with Plot". I had "y" originally and changed to "YES"(because I saw that somewhere else online) but still keeps asking me yes or no even though i answered yes in the script.

 

Any help would be appreciated.

0 Likes
Reply
Accepted solutions (1)
1,421 Views
7 Replies
Replies (7)

dlanorh
Advisor
Advisor
Accepted solution
Try adding "" after "Yes"

I am not one of the robots you're looking for

0 Likes

wstowe
Advocate
Advocate

That did it!

 

What was the problem?

0 Likes

Sea-Haven
Mentor
Mentor

The longer winded version may be helpful this is used in plot a range of layouts.

 

(COMMAND "-PLOT"  "Y"  "" "DWG To PDF"
	       "Iso full bleed A3 (420.00 x 297.00 MM)" "m" "LANDSCAPE"  "N"   "W"  "-6,-6" "807,560" "1=2"  "C"
	       "y" "Acad.ctb" "Y"	"n" "n" "n" pdfName "N" "y"
    )

 

0 Likes

wstowe
Advocate
Advocate

@Sea-Haven wrote:

The longer winded version may be helpful this is used in plot a range of layouts.

 

 

(COMMAND "-PLOT"  "Y"  "" "DWG To PDF"
	       "Iso full bleed A3 (420.00 x 297.00 MM)" "m" "LANDSCAPE"  "N"   "W"  "-6,-6" "807,560" "1=2"  "C"
	       "y" "Acad.ctb" "Y"	"n" "n" "n" pdfName "N" "y"
    )

 

 


Thanks for sharing! I'm guessing this is for multiple layouts in a single drawing?

 

All of our drawings are in model space. And some point I will look into making a LISP that will make a PDF of all open drawings.

0 Likes

dlanorh
Advisor
Advisor

@wstowe wrote:

That did it!

 

What was the problem?


You weren't finishing the command, it was waiting for the final return ("") to finish.

I am not one of the robots you're looking for

0 Likes

maratovich
Advisor
Advisor

@wstowe wrote:
All of our drawings are in model space. And some point I will look into making a LISP that will make a PDF of all open drawings.

View this 

 

 

 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes

Sea-Haven
Mentor
Mentor

The maratovich answer is the best, in a lisp need a title block around each section to be plotted then can work out the area to plot and what scale to use. I have done it but promote using layouts as the preferred way.

0 Likes