CADTutor: The best free help for AutoCAD on the web
Michael's Corner RSS Feed

Michael’s Corner

Michael BeallMichael's Corner is a monthly publication written by Michael E. Beall, Autodesk Authorized Author and peripatetic AutoCAD trainer. Michael travels all over the USA, bringing his fantastic experience and great understanding of AutoCAD to his clients. Michael's Corner brings together many of the tips, tricks and methods developed during these training sessions for the benefit of all users.

Michael's Corner provides something for every AutoCAD user. Every month, a number of articles cover a wide range of topics, suitable for users at all levels, including "The Basics" for those just starting out. Essentially, the aim of Michael's Corner is to help all AutoCAD users work smarter and faster.

This month…

October - One-derful!!!

It's a God-thing.

I had no idea that 14 years ago I would be given the opportunity to make an impact on the professional lives of so many. Only God knew what was ahead, and hopefully, the contributions I have made through Michael's Corner have equipped many of you to be more productive and a bit more savvy using AutoCAD. And apart from all the AutoCAD bashing that is going on, I'm sure it has a long life ahead.

So, in an effort to keep the AutoCAD fires burning, here's what I have for my final installment…

…A reminder on how to customize your hot keys
…Three Power Tools — one for Zoom, one for editing, and one for Layers
…Two Odd Spots — one for Layers and one for Hatching
…Buried text treasure
…And how to Search 14 years of the Archives

As for what's ahead for me, I will continue to present a variety of AutoCAD sessions — Fundamentals, Intermediate, Customizing, Updates, and 2D & 3D. I will also keep training CAP Designer, 20-20 Worksheet, Visual Impression (those three from 20-20 Technologies, Inc.), and some Revit Fundamentals. Next year I'm looking forward to being very involved in training CET (from Configura, Inc.) when Herman Miller joins the growing number of manufacturers embracing this software that is being touted as the ‘Future of Space Planning’. Personally, I'm looking forward to spending a bit more time with Donna, my lovely bride of 30 years. When this posts, we'll probably be within days of going on our 30th Anniversary vacation to the Tanque Verde Ranch in Tucson; Ee-Hah! We had such a good time when we went for our 20th, we figured we'd do it again!

Ah, and I'm hoping to have The AutoCAD Workbench, Final Edition out before snow flies.

And with that, Mike drop! …so to speak.

The LORD bless you and keep you;
The LORD make His face shine upon you,
And be gracious to you;
The LORD lift up His countenance upon you,
And give you peace. Numbers 6:24-26

This month's articles

Change F1 to ESC
Smoother Zoom
Stretch with Extension
Lock Layers with a Crossing Window
Layer Columns & Hatch Background Color
Text Frame on Mtext

From the Vault

Originally published January 2008

Command Aliases and Options

Reference file: Acaddoc.lsp

Command aliases allow you to quickly access commands by typing in a few letters instead of the full command name or locating the command on one of the user interfaces. While command aliases are great for accessing commands, they do have one limitation and that is they cannot be defined with command options. To workaround this issue, you can define commands with AutoLISP that have a name with a couple letters. For example, if you want to perform a Zoom Window you need to start the ZOOM command and then use the Window option or click Zoom Window in the user interface, but with AutoLISP you could define a command named ZW to do the same thing.

Once the command is defined, you can automatically load it each time AutoCAD starts up by creating a file with the special name Acaddoc.lsp, or create an AutoLISP file with a name of your choice and then add it to the Startup Suite in the Load/Unload Application dialog box.

Instructions to create a simple Custom Command with AutoLISP

  1. Start the Notepad text editor; click Start[All] ProgramsAccessoriesNotepad.
  2. In Notepad, enter the following text:
;; Defines two commands: one performs a zoom window
;; and the other a zoom previous
(defun c:ZW () (command "._zoom" "_w"))
(defun c:ZP () (command "._zoom" "_p"))
Acaddoc.lsp
  1. From the menu bar, choose FileSave As….
  2. In the Save As dialog box, select "All Files" from the Save As Type drop-down list.
  3. Browse to one of AutoCAD's support paths or add a new support path on the Files tab of the Options dialog box. Enter the name Acaddoc.lsp in the File Name box and then click Save.
  4. Switch to AutoCAD. Then save any files that are open and close AutoCAD.
  5. Restart AutoCAD and create a new drawing. Then type ZW or ZP at the command prompt. If Acaddoc.lsp was found by AutoCAD the new commands should work.

The example (defun c:ZW () (command "._zoom" "w")) breaks down as follows:

(defun c:ZW () - The Defun function creates a new command that can be typed at the command prompt named ZW.

(command "._zoom" "_w")) - The Command function tells AutoCAD that you are using the following commands and options. So the example uses the ZOOM command with the Windows option.

The lines that start with a ; (semicolon) designate lines in the file that are used as comments and do not get executed or loaded into AutoCAD.

Top of page

Local Navigation

Sponsored Links

Accessibility statement

Valid XHTML 1.0!Valid CSS!Creative Commons Licence