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

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

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

412 Using the Tool Palettes Window

Inserting hatches and loading linetypes

Hatch patterns can be dragged and dropped from DesignCenter. Use the Folders tab and browse to the folder that the Hatch Pattern (PAT) files are stored in. By default the hatch pattern (PAT) files that come with AutoCAD can be found in the folder C:\Documents and Settings\<user name>\ Application Data\Autodesk\AutoCAD 2007 (or AutoCAD LT 2007)\R17.0

(or R12.0)\enu\Support. User name varies based on what your Windows login is. Select the hatch pattern file, and then drag and drop the pattern from the Content Area into an enclosed area of your drawing. The enclosed area will be hatched. You can also load linetypes from a Linetype Pattern (LIN) file in the same way you drag and drop hatch patterns into a drawing.

Using the Tool Palettes Window

The Tool Palettes window is an interface that allows you to organize content on palettes of tools. These palettes of tools can be used to reference existing content such as blocks, xrefs, or images (AutoCAD only) and even custom commands. Tool palettes can be organized so that they can be shared across the company with other drafters, making it easy to develop and maintain CAD standards with them. The Tool Palettes window (see Figure 4-3) was originally introduced in AutoCAD 2004. The command TOOLPALETTES is used to display the Tool Palettes window.

Figure 4-3:

The Tool Palettes window.

Using the Tool Palettes Window 413

To start the TOOLPALETTES command and display the DesignCenter palette, use one of the following methods:

Tools menu. Choose Tools Palettes Tool Palettes.

Standard toolbar. Click the Tool Palettes Window button on the Standard toolbar.

Keyboard input. Type TOOLPALETTES and press Enter.

Command alias. Type TP and press Enter.

Shortcut key. Press Ctrl+3.

Blocks, xrefs, images, tables, and hatches

Tool palettes are designed to allow you to add and organize content on the fly from drawings that you are currently working on or even drawings that have already been created. Tool palettes allow you to organize blocks, xrefs, images (AutoCAD only), tables, hatch patterns, and gradient fills (AutoCAD only). To create a tool out of these objects, you simply open a drawing and drag and drop the content directly from the drawing window onto the Tool Palettes window. Dragging and dropping from a drawing works to create many of these different tools, but you can also drag and drop content from Windows Explorer or DesignCenter.

Command and flyouts tools

Commands and flyouts can be added to a tool palette allowing you to access the commands that you use regularly. Commands can be customized so they perform a specific combination of commands and command options called a macro. A flyout is somewhat limited in the level of customization that can be done with them. Commands can be added to a tool palette by dragging some types of geometry such as lines, arcs, and dimensions from a drawing onto a tool palette, or by dragging commands from the Command List pane in the Customize User Interface (CUI) editor. For more information on creating tools on tool palettes, choose User’s Guide The User Interface and Tool Palettes Customize Tool Palettes on the Contents tab of the online Help system.

Modifying tools on a tool palette

You can modify any of the tools that are placed on a tool palette. The properties you can customize depend on the type of tool. Most tools have a set of general properties that they all have in common, such as current layer, color, and linetype. To modify a tool, set the tab that the tool is on current and right-click

Book VI

Chapter 4

OrganizingDrawings

Your

414 Using the Tool Palettes Window

the tool. From the shortcut menu, select Properties to display the Tool Properties dialog box (See Figure 4-4). Change the properties as necessary and click OK to apply the changes.

Figure 4-4:

The properties of each tool on a tool palette can be tailored to a specific need.

Chapter 5: AutoCAD Utilities

In This Chapter

Filtering objects during selection

AutoCAD calculator

Auditing and recovering drawings

This chapter focuses on some of the utilities that AutoCAD offers to make you a more efficient drafter. Some of these utilities will help you precisely

select what you want to modify or remove from a drawing. We show you how to use the AutoCAD calculator for math calculations and unit conversions, and even to calculate points in a drawing.

At times, AutoCAD may not want to open a drawing or it may crash because of a bad drawing that was received from a contractor, a defect in the program, or even a Windows crash. In these cases, you may need to call upon a few utilities that allow you to recover and audit a drawing file that might contain errors.

Filtering Objects during Selection

In Book II, we talk about how to select objects using single and multiple object selection. Those options are great when you know the exact location of the objects that you want to modify, but what if you wanted to select all the circle objects on a specific layer. You can zoom and pan around the drawing to select each one and then modify the objects, but that can take some time. AutoCAD provides two commands, FILTER and QSELECT (Quick Select), to locate and select objects with specific property values.

Quick Select

Quick Select was originally introduced with AutoCAD 2000 and has only seen minor changes. When you use QSELECT, the Quick Select dialog box appears (see Figure 5-1). From this dialog box, you can specify the objects to which you want to apply the filter, the type of object you want to find, and the property and value you want to use for the filter. You cannot run QSELECT during the execution of another command.

416 Filtering Objects during Selection

Figure 5-1:

Quick Select allows you to filter objects by

a single property.

To start the QSELECT command and display the Quick Select dialog box, use one of the following methods:

Tools menu. Choose Tools Quick Select.

Keyboard input. Type QSELECT and press Enter.

Properties palette. Click Quick Select.

To select all the blocks with a specific name, follow these steps:

1.Initiate the Quick Select command by using one of the previously described methods.

The Quick Select dialog box is displayed.

2.In the Quick Select dialog box, either select Entire Drawing from the Apply To drop-down list or click the Select Objects button.

If you click the Select Objects button, AutoCAD returns you to the drawing window where you are prompted to select the objects in the drawing to which you want to apply the filter. When you finish selecting objects, press Enter to return to the Quick Select dialog box.

3.Select Block Reference from the Object Type drop-down list.

Only the object types that are contained in the drawing appear in the Object Type drop-down list. To search for all objects in the drawing that are set to a color other than ByLayer, for example, select Multiple.

Filtering Objects during Selection 417

4.Select Name from the Properties list.

All the available properties for the object type that you selected from the Object Type drop-down list are displayed in the list.

5.Select = Equals from the Operator drop-down list.

The = Equals operator looks for a perfect match between the value and property of the selected object type. There are different operators available, and the ones that are available in the list are based on the type of property selected.

6.From the Value drop-down list, select the name of the block you want

to filter for.

The Value field changes between a drop-down list and a text box, depending on the property you select. In the case of the Name property, the values are pulled from the objects stored in the AutoCAD drawing and are presented as a list of choices to choose from. If you had selected Radius of a circle, you would have been presented with a text box in which to enter a value.

7.Select the option Include in New Selection Set or Exclude in New Selection Set.

Include in New Selection Set is the commonly used option because you want to work with the objects that result from the filter, but if you want everything but what you specified, select the Exclude in New Selection Set option.

8.Select the Append to Current Selection check box to append the results of the filter to the objects that are currently selected.

This option allows you to use multiple filters to select objects in the drawing.

9.Click OK.

The objects in the drawing or current selection that match the filter criteria are selected, and their grips should be displayed. Now you can run one of the modify commands on the objects, such as erase or move.

Filter

Filter is the original command for selecting objects in the drawing based on their property values. Filter is a little more cumbersome than Quick Select, but it is much more powerful as it allows you to create complex filters. The complex filters can select more than one object type and can include more than one property at a time. Filter one-ups Quick Select by allowing you to run the command transparently, which means you can use the FILTER command at the Select objects: command prompt for many of the modify

Book VI

Chapter 5

Utilities AutoCAD

418 Filtering Objects during Selection

commands. To use the FILTER command transparently, you add an apostrophe in front of the command name. When you use the FILTER command, the Filter dialog box appears (see Figure 5-2).

Figure 5-2:

Filter is more complex, but with complexity comes more control.

The following procedure starts the FILTER command from the command line or the dynamic input tooltip and creates a filter that selects two different blocks based on their name and the layer they are on.

1.At the command prompt or the dynamic input tooltip, enter FILTER and press Enter.

The Filter dialog box appears (refer to Figure 5-2).

2.In the Filter dialog box, select Block from the drop-down list under the Select Filter area.

The drop-down list contains many common object types, group codes, and properties. You can add other properties to a filter by using the Add Selected Object button and then clicking the Delete button to remove the properties you are not interested in using with the filter.

3.Click Add to List.

The object type of Block is added to the list box at the top of the Filter dialog box.

4.Select ** Begin Or from the drop-down list under the Select Filter area. Click Add to List.

The items that begin with ** are group codes that allow you to build complex conditional statements that let you look for more than one object type or property at a time.

AutoCAD Calculator 419

5.Select Block Name from the drop-down list under the Selection Filter area. Click Select.

The Select Block Name(s) dialog box appears.

6.In the Select Block Name(s) dialog box, hold the Ctrl key and select the blocks that you want to filter for in the drawing. Click OK. In the Filter dialog box, click Add to List.

The selected block names are added to the list box at the top of the dialog box.

7.Select Layer from the drop-down list under the Selection Filter area. Click Select.

The Select Layer(s) dialog box appears.

8.In the Select Layer(s) dialog box, select the layer on which you

want to isolate the blocks. Click OK. In the Filter dialog box, click Add to List.

9.Select ** End Or from the drop-down list under the Select Filter area. Click Add to List.

For each conditional ** Begin you have, you must have a ** End to balance it out.

10. Enter a name in the text box to the right of the Save As button to save the filter for future use, and then click Save As.

The filter is saved to a file named Filter.nfl in the folder C:\Documents and Settings\<user name>\Application Data\Autodesk\AutoCAD 2007 (or AutoCAD LT 2007) \R17.0 (or R12.0)\enu\Support by default.

11.Click Apply to use the filter that you created.

You are returned to the drawing window where you can select objects in the drawing window to search for the objects that match the criteria of the filter. If some objects are found, they are selected. To use the objects found in a modify command such as ERASE, start the command and when the Select Objects prompt is displayed, specify the option Previous to use the objects selected with the filter.

AutoCAD Calculator

AutoCAD had a calculator command for a long time, but one of the things it lacked was ease of use. The calculator that AutoCAD offered was command line-based only and forced you to remember all the functions that

could be used, rather than its being a graphical interface. Many users turned

Book VI

Chapter 5

Utilities AutoCAD

420 AutoCAD Calculator

to third-party applications or even the calculator that comes with Windows. The problem was that these other calculators were not integrated into AutoCAD’s workflow. The command line-based calculator that comes with AutoCAD was not available in AutoCAD LT.

This all changed with the introduction of the new calculator command QUICKCALC in AutoCAD 2006. The QUICKCALC command could do everything that the legacy calculator could do but made it accessible through a graphical user interface. Along with the change to a graphical interface, the calculator was integrated into AutoCAD’s workflow by incorporating it into the Properties palette. The QUICKCALC command displays as either the QuickCalc palette (see Figure 5-3) or a dialog box. When a command is running in AutoCAD, QuickCalc is displayed as a dialog box instead of as a palette. Following is an overview of the types of expressions that QuickCalc offers.

Basic expressions. The Number Pad area offers most of the basic functionality for inputting basic math expressions such as adding, subtracting, and multiplying. The area contains numbers, parentheses for grouping expressions, and buttons for storing results in memory.

Scientific expressions. The Scientific area offers many common expressions related to scientific and engineering applications. These functions range from being able to calculate sine (sin) and cosine (cos) to convert radians to degrees (r2d) and degrees to radians (d2r). There are a total of 15 expressions that are available to you.

Unit conversion expressions. The Units Conversion area offers the ability to convert between different units of measure. QuickCalc allows you to convert units of measurement based on length, area, volume, and angular values.

Geometry and variable expressions. The Variables area and some of the tools along the top of the QuickCalc interface allow you to calculate values based on existing geometry in the current drawing. You can calculate the midpoint between two endpoints (mee) or the radius of a selected circle or arc (rad). You can create custom variables to store values that you might use often.

AutoCAD Calculator 421

History Area

Input Box

Figure 5-3:

QuickCalc palette makes using calculations and expressions in commands easier.

The legacy calculator is available in AutoCAD only and can be started by using the CAL command. This command is still great for when you might want to use calculator expressions in a command macro.

To start the QUICKCALC command and display the QuickCalc palette or dialog box, follow one of the methods outlined below:

Tools menu. Choose Tools Palettes QuickCalc.

Standard toolbar. Click the QuickCalc tool on the Standard toolbar.

Keyboard input. Type QUICKCALC and press Enter

Command alias. Type QC and press Enter.

Shortcut key. Press Ctrl+8.

Properties palette. Select a property and click the Calculator icon.

Book VI

Chapter 5

Utilities AutoCAD