Plot Using Lisp

Plot Using Lisp

My_Civil_3D
Advocate Advocate
357 Views
3 Replies
Message 1 of 4

Plot Using Lisp

My_Civil_3D
Advocate
Advocate

Hi guys i am busy creating a lisp that plots to a certain location using a certain name that gets extacted from the titleblock combined with other numbers. for this example im going to use a variable name only.

 

(defun c:test (/)
(setvar "filedia" 0)
(setq prnt "C\\PRINT\\00-0000-0000.pdf")

(command "-plot" "y" "A0" "DWG To PDF.pc3" "ISO full bleed A0 (841.00 x 1189.00 MM)" "M" "L" "N" "E" "1=1" "C" "Y" "DRA.ctb" "Y" "N" "N" "N" prnt)

 my question is how do you put the prnt variable in?  

Civil 3D Certified Professional
0 Likes
358 Views
3 Replies
Replies (3)
Message 2 of 4

ronjonp
Mentor
Mentor

One problem you have is you're missing the colon after the drive letter.

ronjonp_0-1682175341195.png

 

0 Likes
Message 3 of 4

paullimapa
Mentor
Mentor

Share your title block or provide title block name along with attribute tag where the name is stored for extraction


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 4

Sea-Haven
Mentor
Mentor

Something like this

 

 

(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"
    )

This plots a range of layouts to a pdf directory under the dwg location. Just change the plot parameters to suit.

Save the multi getvals.lsp to a support path so can autoload.

 

 

 

0 Likes