[Search tip detail and code files using keywords, tip number, author name, etc ]
 
Use ACCADOC.LSP to Create AutoCAD Shortcuts
Tip# 3251 By Miles Mehlhoff On 09-Aug-2009
4
Rated By 1 users
Categories : Load Applications
Software type : AutoCAD 2010
Rename File To : No Files to download.
Use this tip to help decrease drafting time.

Miles Mehlhoff wanted to streamline his AutoCAD command inputs. Here is an example of what he did to decrease his drafting time. 

"I have found the Offset command to be a very handy command in my day-to-day drafting operations.  One thing I have noticed is that the Offset command is often followed by a keyed-in distance. For these instances, it seemed like I was spending time either searching for the offset tool button or heading for the O key on my keyboard prior to heading to the numerical keypad of my keyboard. I thought to myself, wouldn't it be a nice time saver if there was a way to invoke the Offset command from the numerical keypad. So I created a custom command in AutoLISP that assigns the offset command to a keyed-in 0 (zero key), followed by Enter. By putting this routine in my ACADDOC.LSP file, it is available in any drawing I open."

 (defun c:0()(command "offset"))

Notes from Cadalyst Tip Patrol: There are many ways to customize AutoCAD. The ACADDOC.LSP file is one of them. This file loads every time you open a drawing file. You can put full LISP routines in this here, macros, or commands, or system variable settings. This is a very powerful tool. 

 

Average Rating:
4


User comments
Comment by Hirschklau,Mitchell
Posted on 2009-08-11 10:14:35
As always, the good news is that AutoDesk (seemingly) gives you six ways to do anything. The bad news is that AutoDesk (seemingly) gives you six ways to do anything. This is just one (more) way to customize your keyboard in AutoCAD. And, it's a particularly useful tip if your employer (especially if you are a short-term contractor) won't allow you any of the other ways (Short-Cut keys, let's say) of customizing the keyboard. Of course customizing the ACADDOC.lsp is a "less" useful tip if you are on (or have just moved to) an LT workstation...