10. Commands and Arguments

10.1 Commands

There is a command line bar at the bottom of the screen where commands can be entered by typing them in lieu of using the pull down menus and the mouse. The command bar can be raised and lowered by using the function key F3 or from the Tools menu.

The commands you type in the command bar are case insensitive. Commands currently available are:

Opens the user manual
Perform an audit on the drawing data base
Quits the drawing
Opens a file dialog
Starts the pan command
Regenerates and redraws the drawing on the screen
Starts the zoom command. After zoom the following options are presented:
Opens the report dialog

10.2 Command History

All commands typed into the command bar are retained in a history stack. To view the stack use the up arrow and down arrows on your keypad. The up arrow will move up the stack, that is starting with the last command and then displaying each previous command. A down arrow will move down the stack starting with the first command typed and then displaying each subsequent command. Then either the beginning or the end of the stack is reached the program will loop around to the other end of the stack.

Please note that only commands typed into the command bar are kept in the history. Commands selected using the mouse and file names typed into dialogs are not kept in the history.

10.3 Command Alias

This feature is being worked on.

10.4 Command Line Arguments

Viewer can be called with up to 2 command line arguments. The format for these is:

viewer [filename] [cmd]

Where filename is the full path and name of the drawing you want to open and cmd is one of the following:

displays the help manual
runs the audit function on the drawing specifed in the first argument
runs the report function on the drawing specified in the first argument.

After -report additional multiple arguments may also be supplied. There are several undocumented arguments that may work, but the two that have been tested are:

to report on all blocks in the drawing
to report on all attributes in the blocks

Example Usage:

viewer path/to/your/directory/filename.dwg -report -blocks -attributes

The command above would open the file /path/to/your/directory/filename.dwg and then open a report window seeded with the blocks and attributes. The report could be further customized using the selections described above.

10.5 Batch Reporting with Command Line Arguments

To do batch reporting use the tag dir= in front of the filename, and make sure that filename is a directory name. You must also provide the -report argument.

An example would be:

viewer dir=path/to/your/directory -report -blocks -attributes

This command would open all files ending in .dwg or .DWG and located in /path/to/your/directory. The report would be seeded with all the block and attribute information in these drawings. Using the controls described in the previous section the report could be further customized.