Categories

AutoCAD 2012 & AutoCAD LT 2012 Bible

The most comprehensive AutoCAD book around!

AutoCAD 2012 Bible

Ditch dialog boxes with the command-line form of commands

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!

 

 

Related posts:

  1. Add commands to tool palettes from the CUI dialog box in AutoCAD 2007
  2. Use the command line to launch programs
  3. Make the command line work the way you want it to
  4. Tutorial: Create a custom command
  5. Tutorial: Automate tasks with a script file

3 comments to Ditch dialog boxes with the command-line form of commands

  • caduser

    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.

  • Mohiuddin

    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.

  • Dustinlai

    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

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>