Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Quick printing with LISP

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
R.Groen7641
901 Views, 3 Replies

Quick printing with LISP

Hi AutoCAD specialists,
I use an LISP file for easy and quick plotting. (AutoCAD 2015)
Because of new sizes in format and other printers, the LISP file needs to be updated.
I added new information to the exsisting LISP, reloaded the file into AutoCAD and tried to start de new print option.
AutoCAD doesn’t start the plot. (See below)

Command: 1PPC550A0
Command:
Command: *Cancel*
Command: *Cancel*
Command:

This is the part of the LISP file, that should be started. (Total lisp file is larger)
;;;A0 1:1 Landscape
(defun c:1PPC550A0 ( / currtab dwgnameonly cdname savepath)
(setq currtab (getvar "ctab"))
(setq dwgnameonly (getvar "dwgname"))
(setq cdname (substr dwgnameonly 1 (- (strlen dwgnameonly) 4)))
(setq Savepath "C:/1PickPlot/DWF-Bestanden/")
(if (= (getvar "tilemode") 1)
(progn
(command "-plot" "y" currtab "ColorWave550-WPD2.pc3" "A0 (841x1819mm)" "Millimeters" "Landscape" "n" "view" "plot_841x1819" "1:1" "0,0" "y" "bijenkorf.ctb" "y" "n" "n" "n" (strcat Savepath cdname) "y" "y")
)
)
(princ)
)


If I change the defun for example into a value that works on a other part within this LISP file, then this part of the LISP file works.
Anybody an idea?
Regards,
Richard

3 REPLIES 3
Message 2 of 4
richardgroen
in reply to: R.Groen7641

Problem solved, there where some minor errors in the LISP file.
Message 3 of 4
donohoeb
in reply to: richardgroen

Autocad 2015

Customised menu Toolbar

 

What is the format to use in a Toolbar macro to print to a network printer?

\\ABCSrvPrint\Engineering-X7855

 

I have tried two \\, two //, four \\\\, four ////, inverted commas, but none work.

Message 4 of 4
richardgroen
in reply to: donohoeb

Did you tried to put it between " " and with one /  ??

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost