How to 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

  1. Image titled Create a New Command on Autocad Step 1
    1
    For an example, this article will show you how to create a command that copies an object in place.
  2. Image titled Create a New Command on Autocad Step 2
    2
    Open AutoCAD.
  3. Image titled Create a New Command on Autocad Step 3
    3
    Type "cui" in the command line and press enter. This will bring up the "Customize User Interface" dialog box.
  4. Image titled Create a New Command on Autocad Step 4
    4
    Right click in the command list and select "New Command".
  5. Image titled Create a New Command on Autocad Step 5
    5
    Rename your command to accurately describe what it will do.
  6. Image titled Create a New Command on Autocad Step 6
    6
    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.
  7. Image titled Create a New Command on Autocad Step 7
    7
    Give your New Command an icon if you wish.
  8. Image titled Create a New Command on Autocad Step 8
    8
    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

Article Info

Categories: CAD Software