Senior CAD Tech James Henman sent us a few small tips to help you speed things up, especially with two-letter commands. "These lines are a few of the toggles that I place in my ACADDOC.LSP file so that I can activate them with a two-letter command: (defun c:BM ()(command "setvar" "BLIPMODE" (if (zerop (getvar "blipmode")) 1 0)) ) (defun c:UI ()(command "setvar" "UCSICON" (if (zerop (getvar "ucsicon")) 1 0)) ) (defun c:PM ()(command "setvar" "peditaccept" (if (zerop (getvar "peditaccept")) 1 0)) ) (defun c:FM ()(command "setvar" "fielddisplay" (if (zerop (getvar "fielddisplay")) 1 0)) ) (defun c:GM ()(command "setvar" "PICKSTYLE" (if (zerop (getvar "pickstyle")) 1 0)) ) Replace the bold text with whatever system variable that you want to toggle. "In ACAD.PGP, make: TF, *TFRAMES TF will toggle image frames on and off without any prompts. "I also wrote a short LISP command, as follows, that is auto-loaded to assist with quickly loading a LISP program: (defun c:LL () (setq lfile (strcat (getstring) ".lsp")) (setq lostfile (strcat lfile " - File Not Located! ")) (load lfile lostfile) ) To load a file at the command prompt, I just type: Command: LL filename<enter> versus Command: (load "filename")<enter> Notes from Cadalyst Tip Patrol: The key to getting more done in less time is to work less. Keyboard shortcuts are great for that. AutoCAD comes with many commands with two-keystroke abbreviations already set; those are kept in the PGP file. James has also taken advantage of the ACADDOC.LSP file, which is loaded into AutoCAD every time you turn it on. It loads several bits of code, sets variables, and can load LISP routines as well. It is very useful. |