Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Slow loading lisp

8 REPLIES 8
Reply
Message 1 of 9
golf32902
332 Views, 8 Replies

Slow loading lisp

So I have a lisp that woks but it is just slow running it. can anyone tell me what setting in auotcad should be changed to make this run faster, or do I have the lisp writen wrong. I dont know where to start. any help would be greatly appreciated.

;; *******************************************************************************************
(defun C:Sheet ()
					;(setvar "CMDECHO" 0)
  (command "-layout" "n" "24x36")
  (command "-layout" "s" "24x36")
  (command "-plot"	   "y"		   "24x36"
	   "USPYPLOTTER03.pc3"		   "Arch D (landscape)"
	   "inches"	   "landscape"	   "no"
	   "window"	   "0.0000,0.0000" "36.0000,24.0000"
	   "1:1"	   "0.00,0.00"	   "Yes"
	   "Monochrome.ctb"		   "Yes"
	   "No"		   "No"		   "No"
	   "No"		   "Yes"	   "No"
	  )
					; (c:24x36titleblock)
  (command
    "-insert"
    "*C:/AutoCAD_Add-ons/Blocks/Titleblocks/plottb.dwg"
    "-.195,-.195"		    ""
    ""				    "0"
   )
)
					;(setvar "CMDECHO" 1)
(princ)

					;****************************************************************

					;This will insert title block

					;(defun c:24x36titleblock ()
					;  (command
					;    "-insert"
					;    "*C:/AutoCAD_Add-ons/Blocks/Titleblocks/plottb.dwg"
					;    "-.195,-.195"
					;    ""
					;    ""
					;    "0"
					;   )
					;)
;; *******************************************************************************************

 

8 REPLIES 8
Message 2 of 9
paullimapa
in reply to: golf32902

Lisp code looks good.  Is it just as slow if you were to manually execute the same commands in that sequence?

 

 

Area Object Link | Dwg Setup | Feet-Inch Calculator | List on Steroids
Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 9
golf32902
in reply to: paullimapa

Ya, I have tweeked some setting in autocad, but to no success.

Message 4 of 9
paullimapa
in reply to: golf32902

Maybe there's some plot devices that are no longer referenced that should be removed.  Those usually would slow AutoCAD to a crawl when attempting to even start the Plot command.

 

Area Object Link | Dwg Setup | Feet-Inch Calculator | List on Steroids
Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 5 of 9
golf32902
in reply to: paullimapa

I just ran throght typing it in vs running the command. Typing is about 3 mins, and lisp take s 45 seconds. so I am wrong on your first question. I did noticed that you are correct about the plotter being selected took the longest. I just got this new laptop with a fresh version of autocad, so there is no exccess plotter / printers installed.

Message 6 of 9
paullimapa
in reply to: golf32902

Maybe AutoCAD is searching into the Windows system printers that is slowing it down.  Try disabling this search:

Options>Plot and Publish tab > check Hide system printers

 

I would also check the plott device folder to see if there are shortcuts there that AutoCAD may be forced to search which will also slow things down:

command: PlotterManager

 

Area Object Link | Dwg Setup | Feet-Inch Calculator | List on Steroids
Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 7 of 9
golf32902
in reply to: paullimapa

No suck luck.  Oh well, I will keep trying to mees with the settings. Thanks for all the help.

Message 8 of 9
hgasty1001
in reply to: golf32902

Hi,

 

Try to set BACKGROUNDPLOT to 0 or 2 .

 

Gaston Nunez

Message 9 of 9
golf32902
in reply to: hgasty1001

I tried that and no suck luck. I am just chocking this up to how large the network is, and it has to find the plotter.

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

Post to forums  

Autodesk Design & Make Report

”Boost