Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

AutoCAD & AutoCAD LT All-In-One Desk Reference For Dummies (2006)

.pdf
Скачиваний:
90
Добавлен:
17.08.2013
Размер:
17.7 Mб
Скачать

582 Creating and Managing Command Aliases

9.In the Import Profile dialog box, you can use the default name and description or make changes as necessary to these two values.

You also have the option of including the paths that are stored in the user profile file or using the ones from the current profile.

10.Click Apply & Close to complete the importing of the user profile.

A new user profile based on the imported user profile file is added to the Available Profiles list, or the options for a profile are updated if the user profile with the specified name already exists.

11.Click OK to exit the Options dialog box.

Creating and Managing Command Aliases

Command aliases provide a quick way for you to access a command from the command line without being forced to type the entire command name. Command aliases are stored in the Acad.PGP (or Aclt.PGP) file, which is a plain text file stored by default under C:\Documents and Settings\<user name>\Application Data\Autodesk\AutoCAD 2007\R17.0\enu\Support (or C:\Documents and Settings\<user name>\Application Data\Autodesk\ AutoCAD LT 2007\R12\enu\Support). You often hear these files referred to as the program’s PGP (Program Parameters) files. An example of a command alias is L, which is used to start the LINE command.

Editing the PGP file

Because a PGP file is a plain text file, it can be edited using a text editor like Notepad. Two different formats of aliases can be created: external commands and command aliases. External commands allow you to start applications outside AutoCAD such as Notepad, and command aliases allow you to start commands that are found inside AutoCAD such as the LINE command. Typically, you use command aliases more often than external commands.

The PGP file allows you to define your own command aliases or modify the ones that come with AutoCAD. Adding new command aliases to the bottom of the PGP file is a best practice: If you do, AutoCAD can identify which ones you have added when you go to upgrade to a future release of AutoCAD. One thing to note is that if two command aliases define the same alias, the latter one defined in the file is the one that AutoCAD recognizes when it’s entered at the command line or the dynamic input tooltip.

Here’s a sample of the PGP file:

J,

*JOIN

L,

*LINE

LA,

*LAYER

Creating and Managing Command Aliases 583

The syntax for a command alias is as follows:

Alias, *AutoCAD Command Name

You should keep the alias to as few characters as possible because the whole idea of an alias is to save you keystrokes. Between the alias and command name, you must use a comma to separate the two arguments, and the command name must be prefixed with an * (asterisk).

AutoCAD LT doesn’t support external commands in the PGP file.

Opening the PGP file

To open the PGP file for the program, use one of the methods listed below:

Tools menu: Choose Tools Customize Edit Program Parameters (acad.PGP) or (aclt.PGP).

External: Start Notepad, browse to the location of the PGP file, and open it.

Adding a new command alias

Follow these procedures to create a new command alias:

1.Open the PGP file using one of the previously described methods.

2.Scroll to the bottom of the file to the section -- User Defined Command Aliases –.

The section -- User Defined Command Aliases — is where you should add your own command aliases. Command aliases placed below this section are automatically migrated forward when you upgrade to a new release of AutoCAD.

3.Don’t make changes to any of the command aliases that come with AutoCAD; instead, create a new command alias with the same command name and add it to the User Defined Command Aliases section. AutoCAD uses the last one it finds in the file; this way, your custom command alias is migrated to a new release automatically.

4.A command alias uses the syntax Alias,*Command. On a new line, enter the alias you want and the AutoCAD command it should execute when typed at the command line, separated by a comma.

Don’t forget to precede the AutoCAD command name with an asterisk (*).

5.The new command alias should be added to the PGP file using the syntax Alias,*Command.

Book IX

Chapter 1

Basics TheCustomizingAutoCAD

of

584 Creating and Managing Command Aliases

6.From the menu bar in Notepad, choose File Save.

The changes to the PGP file are saved to the file.

7.Switch back to AutoCAD and type REINIT at the command line.

The Re-initialization dialog box (see Figure 1-9) is displayed.

Figure 1-9:

The Reinitialization dialog box.

8.Select the check box next to PGP File and click OK.

The changes to the PGP file are available for use right away; you don’t need to close and restart AutoCAD.

Working with the AutoCAD Alias Editor

If you are a user of AutoCAD, you might have heard of a collection of tools called Express Tools. Express Tools is a collection of tools that extends the base functionality of AutoCAD in a variety of useful ways. One of the tools in the collection is called the AutoCAD Alias Editor (see Figure 1-10).

Figure 1-10:

The AutoCAD Alias Editor dialog box.

This utility allows you to create both external commands and command aliases using a dialog box interface instead of using a text editor like

Creating and Managing Command Aliases 585

Notepad. It also provides you with a list of all the available commands and system variables that are found in the program. For more information on Express Tools, see Chapter 4 in this minibook.

To launch the AutoCAD Alias Editor dialog box, do one of the following:

Express menu: Choose Express Tools Command Alias Editor.

Keyboard input: Type ALIASEDIT at the command line and press Enter.

Express Tools are not supported for AutoCAD LT because they are a collection of custom programs written with AutoLISP, VBA, and ObjectARX, which AutoCAD LT does not support.

Book IX

Chapter 1

Basics TheCustomizingAutoCAD

of

586 Book IX: Customizing AutoCAD

Chapter 2: Customizing

the Interface

In This Chapter

Getting to know the status bar

Training your toolbars and dockable windows to stay

Controlling the appearance and display of AutoCAD

Organizing your space

AutoCAD allows you to personalize the overall appearance of the application window and display settings that can affect performance. Many users personalize their AutoCAD session to reflect the way they like to work or the way they want things displayed on-screen. AutoCAD gives you a lot of control over the appearance of colors and font sizes throughout the applica-

tion window. The appearance settings include changing the background color of the drawing window and the crosshair color.

Not only does AutoCAD offer a variety of options to control colors of specific elements found in the application, but it also provides options to control whether certain user interface elements are displayed. Some of the features that you can control are the buttons located on the status bar and the icons that appear in the AutoCAD tray. This chapter explains how to control the appearance of AutoCAD and how to control user interface items such as toolbars and pull-down menus.

Getting Familiar with the Status Bar

AutoCAD takes full advantage of every space on its application window, and the status bar is no different. The status bar located at the bottom of the application window offers a variety of tools that allow for quick access to drafting settings and even notifications about changes that are taking place in the software and open drawings.

A number of different tools can be found on the status bar. These tools include the ability to toggle the dynamic input feature on and off and to change Object Snap settings to how lineweights are displayed in the drawing.

Table 2-1 lists the different buttons found on the status bar.

588 Getting Familiar with the Status Bar

 

Table 2-1

 

Status Bar Buttons

 

Button

Name

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Coordinates

Toggles between the different coordinate display

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

settings.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Snap Mode

Toggles grid or polar snapping on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Grid Display

Toggles the display of the grid on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ortho Mode

Toggles orthomode on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Polar Tracking

Toggles polar tracking on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Object Snap

Toggles running object snaps on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Object Snap

Toggles object snap tracking on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Tracking

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Allow/Disallow

Toggles dynamic UCS on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Dynamic UCS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Dynamic Input

Toggles dynamic input on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Show/Hide

Toggles the display of lineweights on and off.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Lineweight

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Model or Paper

Toggles between model and paper space, and

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Space

switches paper space layouts. If the layout tabs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

are not displayed three buttons are displayed and

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

allow you to switch between model and paper

 

 

 

 

 

 

 

 

space, along with switch between different paper

 

 

 

 

 

 

 

 

space layout tabs.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Minimize/Maximize

Toggles between maximized and minimized view-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

and Viewport

port states and allows you to switch between dif-

 

 

 

 

 

 

 

Navigation

ferent viewports.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Icon Tray

Displays the current notification icons for the fea-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tures that are in use in the current session and

 

 

 

 

 

 

 

 

drawing. It also allows you to access the Tray

 

 

 

 

 

 

 

 

Settings.

Many of the tools located on the status bar are not just toggles that turn a setting on or off, but they also allow for accessing the settings for the drafting tool. To change the settings of a drafting tool, right-click the status bar button and select Settings from the menu that appears. This displays a dialog box so you can change the behavior of the drafting tool.

Getting Familiar with the Status Bar 589

AutoCAD allows you to control many of the features that are displayed in the user interface. The status bar is no different; AutoCAD allows you to control which of the different buttons are displayed at the bottom of the application window in the status bar. So if you don’t use the Grid or Snap toggles, you can choose to turn them off. To control the display of the different buttons on the status bar, click the small black arrow that points downward in the lower-right corner of the application window (see Figure 2-1). A shortcut menu (see Figure 2-2) with options to control the different buttons on the status bar is displayed. Select the item from the shortcut menu that you want to toggle the display of. A check mark next to an item signifies that that item is currently displayed on the status bar.

Figure 2-1:

The status bar menu.

Figure 2-2:

The shortcut menu to toggle the display of buttons on the status bar.

Getting to know the Icon Tray

Tray icons, located in the lower-right corner of the status bar, allow you to quickly access certain features. A number of different icons are displayed in the tray and each one serves a specific purpose.

Table 2-2 lists the different tray icons in AutoCAD.

 

Table 2-2

 

Tray Icons

 

Button

Name

Description

 

 

 

 

 

 

 

 

Communication Center

Allows you to access the Communication

 

 

 

 

 

 

 

Center and receive information about

 

 

 

 

available updates, tips and tricks, and

 

 

 

 

 

 

 

 

much more.

 

 

 

 

 

Book IX

Chapter 2

CustomizingInterface the

(continued)

590 Getting Familiar with the Status Bar

Table 2-2 (continued)

 

Button

Name

Description

 

 

 

 

Toolbar/Window Lock

Allows you to control whether toolbars

 

 

 

 

 

 

 

 

 

and dockable windows (palettes) can be

 

 

 

 

 

moved (floated) around the screen, or

 

 

 

 

 

 

 

 

 

 

whether they are stationary (docked).

 

 

 

 

 

 

 

 

 

 

CAD Standards Notification

Allows you to identify that a drawing has

 

 

 

 

 

 

 

 

 

CAD Standards associated with it, access

 

 

 

 

 

the CAD Standards tools, and receive

 

 

 

 

 

 

 

 

 

 

notifications when the drawing becomes

 

 

 

 

 

out of sync with the associated CAD

 

 

 

 

 

Standards files.

 

 

 

 

 

 

 

 

 

 

External Reference Notification

Allows you to identify that External

 

 

 

 

 

 

 

 

 

Reference drawings are contained in the

 

 

 

 

 

drawing and notifies you when the files

 

 

 

 

 

 

 

 

 

 

have been updated and need to be

 

 

 

 

 

reloaded. The notification balloon allows

 

 

 

 

 

you to reload the file that has changed

 

 

 

 

 

without needing to open the External

 

 

 

 

 

Reference dialog box.

 

 

 

 

 

 

 

 

 

 

Plot Notification

Allows you to access information about

 

 

 

 

 

 

 

 

 

recent plotted files and to receive infor-

 

 

 

 

 

mation about a job that is being processed

 

 

 

 

 

 

 

 

 

 

in the background.

 

 

 

 

 

 

 

 

 

 

Attribute Extraction Notification

Allows you to identify that a Table object

 

 

 

 

 

 

 

 

 

in the drawing is linked to blocks in the

 

 

 

 

 

drawing. If the original information that

 

 

 

 

 

 

 

 

 

 

the Table points to is changed, you will be

 

 

 

 

 

notified that the Table has become out of

 

 

 

 

 

sync.

 

 

 

 

 

 

 

 

 

 

Trusted Autodesk DWG

Allows you to identify whether the current

 

 

 

 

 

 

 

 

 

drawing was created with an application

 

 

 

 

 

developed by Autodesk or a non-Autodesk

 

 

 

 

 

 

 

 

 

 

product.

 

 

 

 

 

 

 

 

 

 

Validate Digital Signatures

Allows you to identify whether the current

 

 

 

 

 

 

 

 

 

drawing has been digitally signed, and if

 

 

 

 

 

the digital signature is valid.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clean Screen

Allows you to enable or disable Clean

 

 

 

 

 

 

 

 

 

Screen.

 

 

 

 

 

 

 

 

 

 

 

 

The Clean Screen tray icon is new in AutoCAD 2007.

Getting Familiar with the Status Bar 591

AutoCAD LT does not support CAD Standards, so the CAD Standards Notification is not present in the software. AutoCAD LT does not support the Attribute Extraction Notification either because it doesn’t support the Enhanced Attribute Extract (or EATTEXT) command. Although AutoCAD LT does support external references, the External Reference Notification is not part of AutoCAD LT.

The Icon Tray allows you to customize some options that apply to all the icons that are contained in this area of the status bar. Here is an overview of the available tray settings:

Display icons for services: Controls whether icons for services that are running in AutoCAD are displayed on the status bar.

Display notifications from services: Controls whether the services display a notification balloon when something they are monitoring changes.

Display time: Controls the maximum length of time in seconds that a notification balloon should be displayed if the user doesn’t close it before the time period expires. The time range is from 1 to 10 seconds.

Display until closed: Controls whether the notification for the service is displayed until the user dismisses it.

Follow these procedures to change the available tray settings:

1.Click the small black arrow that points downward in the lower-right corner of the application window.

A shortcut menu with options to control the different tools on the status bar is displayed.

2.On the shortcut menu, click Tray Settings.

The Tray Settings dialog box (see Figure 2-3) is displayed.

Figure 2-3:

The Tray Settings dialog box.

3.Change the options to the desired combination of settings and click OK.

The Tray Settings dialog box closes and the status bar is updated based on the selected options.

Book IX

Chapter 2

CustomizingInterface the