Did you know that many commands have a variation that lets you execute them solely on the command line? This technique is great for creating script files and AutoLISP routines. For example, you can write a script file to plot your drawings.
The secret is to put a hyphen (-) before the command name. Here’s a list of some common commands that have command-line versions:
- -ARRAY
- -ATTACH
- -BEDIT
- -BHATCH
- -BLOCK
- -DIMSTYLE
- -EXPORT
- -GROUP
- -HATCHEDIT
- -IMAGE
- -INSERT
- -LAYER
- -LINETYPE
- -MTEXT
- -OSNAP
- -PURGE
- -STYLE
- -TEXT
- -UNITS
- -VIEW
- -VISUALSTYLES
- -VPORTS
- -WBLOCK
- -XREF
For example, here’s what you see when you type -layer on the command line:
![]()
Lots of options!
In some cases, the command-line form is a different command. For example, instead of using the DDVPOINT command, which opens a dialog box, you can use the VPOINT command.
You can see how creating a script file for some of these commands would be useful for automating repetitive tasks. For example, you can create and change layers using the -LAYER command.
How do you use the command-line form of commands in your work? Leave a comment!
Sign up to get the AutoCAD Tips Newsletter so you won’t miss any new tips!
Facebook Page
I began with R12 DOS, so I would be lost without the command line. I use it for entering my own aliases, invoking scripts and many times just for general ACAD commands. It is faster to use the command line than two or three picks on the ribbon.
command line is life line in autocad for true users. n active any commands by command line batter for eyes and neck more over any version of cad u can work without seeing tools.
Dear Sir/Madam
would you like to help me to make a 2D drawing with built dimension
This is for class work purpose,
contact no. 92093284
Thanks
Dustin
I too am an old Cadder who like to type
AutoDesk has been pushed side menus, top menus, button and now ribbons
They are all ok but keep the command line and ensure that all commands new and existing come with their command line equivalent and can be worked with out a dialogue interface.
also refer to http://www.onlinecad.net/AU%20Course%20Docs/AU%202007/Become%20An%20AutoCAD%20Power%20User.pdf
From one of their own, POWER USERS like command line