Quick Printing Lisp - Troubleshooting

Quick Printing Lisp - Troubleshooting

Jason.Rugg
Collaborator Collaborator
809 Views
2 Replies
Message 1 of 3

Quick Printing Lisp - Troubleshooting

Jason.Rugg
Collaborator
Collaborator

Can someone quickly troubleshoot my code below and see why it wont work? It is modified from another code that does work that essentially does the same thing but makes a pdf. This code is for a very quick print, I removed the filename lines of code and specified a new .pc3 print file to use. I feel like it should work but it doesn't.

 

(defun c:MWCP (/a b)
(setq a (getpoint "\nPick first corner: "))
(setq b (getcorner a "\nPick opposite corner: "))
(command "tilemode" "1")
(vl-cmdf "-plot"
"Yes"
"Model"
"EngineeringSharpColor.pc3"
"Ledger"
"Inches"
"Landscape"
"No"
"Window"
a
b
"Fit"
"Center"
"Yes"
"KCI-acad.ctb"
"No"
"A"
"No"
"No"
"Yes"
)
(princ)
)

0 Likes
Accepted solutions (1)
810 Views
2 Replies
Replies (2)
Message 2 of 3

Jason.Rugg
Collaborator
Collaborator
Accepted solution

Problem solved, did not have the file saved in the correct location and was conflicting with another copy.

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi, I copied your codes. and run it, it says "error: too few arguments". I need help.

0 Likes