Create a New Command on Autocad
Ever used the same AutoCAD command over and over again? Wish there was an easier way? There is! Follow these simple steps to create a button on the toolbar that does most of the typing for you!
Steps
- For an example, this article will show you how to create a command that copies an object in place.
- Open AutoCAD.
- Type "cui" in the command line and press enter. This will bring up the "Customize User Interface" dialog box.
- Right click in the command list and select "New Command".
- Rename your command to accurately describe what it will do.
- In properties edit the macro of your new command.
The "copy in place" command has this macro: "^C^C_copy 0,0 0,0"
"^C" is cancel or the equivalent of pressing the Esc key. Always start your command with two ^C in front to exit any commands you may be in.
"_copy " initiates the copy command
A space will do the same as pressing spacebar in the command line.
The copy command then asks for a base point, and our macro inputs 0,0.
To copy in place we then specify 0,0 for the point we copy to. - Give your New Command an icon if you wish.
- Put it on existing toolbar or create your own.
Tips
- This article was written using AutoCAD 2009. This may or may not work in earlier versions of CAD.
- The Custom User Interface (CUI) was added in AutoCAD 2006. Therefore, this tip WILL NOT WORK in AutoCAD versions 2005 or older.
Warnings
- You may become so addicted to creating your own commands and toolbars, that you don't get any work done!
Things You'll Need
- A computer
- AutoCAD 2006 or newer
- An idea for a useful command
Related Articles
- Translate an Autocad Drawing Using Translation Memory and CAT
- Add 3D Notes in Pro Engineer