Chapter 15

Advanced Editing and Organizing

Because you may not know all of a project’s requirements when it begins, you usually base the first draft of a design on anticipated needs. As the plan goes forward, you adjust for new requirements as they arise. As more people enter the project, additional design restrictions come into play, and the design is further modified. This process continues throughout the project, from the first draft to the end product.

In this chapter, you’ll gain experience with some tools that will help you edit your drawings more efficiently. You’ll take a closer look at Xrefs and how they may be used to help streamline changes in a drawing project. You’ll also be introduced to tools and techniques you can use to minimize duplication of work, such as the Quick Select tool and the QuickCalc feature. The AutoCAD® 2014 software can be a powerful timesaving tool if used properly. This chapter examines ways to harness that power.

In this chapter, you will learn to:

  • Use external references (Xrefs)
  • Manage layers
  • Use advanced tools: Filter and Quick Select
  • Use the QuickCalc calculator

Using External References

Chapter 7, “Mastering Viewing Tools, Hatches, and External References,” mentioned that careful use of blocks, external references (Xrefs), and layers can help improve your productivity. In the following sections, you’ll see firsthand how to use these features to help reduce design errors and speed up delivery of an accurate set of drawings. You do so by controlling layers in conjunction with blocks and Xrefs to create a common drawing database for several drawings. You can also use AutoCAD DWF and Acrobat PDF files as Xrefs. See Chapter 14, “Copying Existing Drawings from Other Sources,” for more on PDF files and Chapter 27, “Managing and Sharing Your Drawings,” for more on DWF files.

Later, you’ll start to use Xrefs to create different floor plans for the building you worked on earlier in this book. To save you some time, we’ve created a second one-bedroom unit plan called Unit2 that you’ll use in these exercises (see Figure 15-1). You can find this new unit plan in the Chapter 15 folder of sample files.

Figure 15-1 The one-bedroom unit

c15f001.tif

Preparing Existing Drawings for External Referencing

Chapter 7 discussed how you can use Xrefs to assemble one floor of the apartment. In this section, you’ll explore the creation and use of Xrefs to build multiple floors, each containing slightly different sets of drawing information. By doing so, you’ll learn how Xrefs enable you to use a single file in multiple drawings to save time and reduce redundancy. You’ll see that by sharing common data in multiple files, you can reduce your work and keep the drawing information consistent.

You’ll start by creating the files that you’ll use later as Xrefs:

1. Open the Plan file. If you didn’t create the Plan file, you can use the 15a-plan.dwg or 15a-plan-metric file (see Figure 15-2).

Figure 15-2 The overall plan

c15f002.tif
2. Turn off the Ceiling and Flr-pat layers to get a clear, uncluttered view of the individual unit plans.
3. Use the Wblock command (enter W↵ at the Command prompt), and write the eight units in the corners of your plan to a file called Floor1.dwg in your My Documents folder (see Figure 15-3). When you select objects for the Wblock, be sure to include the S-DOOR door reference symbols and apartment number symbols for those units. Use 0,0 for the Wblock insertion base point. Also make sure the Delete From Drawing check box is selected in the Write Block dialog box before you click OK.

Figure 15-3 Units to be exported to the Floor1 file

c15f003.eps
4. Using Figure 15-4 as a guide, insert the Unit2.dwg file into the corners where the other eight units were previously. Metric users should use Unit2-metric.dwg. These files can be found in the Chapter 15 folder of sample files. If you didn’t create the Unit2 file earlier in this chapter, use the 15a-unit2.dwg file.

Figure 15-4 Insertion information for Unit2. Metric coordinates are shown in brackets.

c15f004.eps
5. After you’ve accurately placed the corner units, use the Wblock command to write these corner units to a file called Floor2.dwg. Again, use the 0,0 coordinate as the insertion base point for the Wblock, and make sure the Delete From Drawing check box is selected.
6. Choose Save As from the Application menu to turn the remaining set of unit plans into a file called Common.dwg.

You’ve just created three files: Floor1, Floor2, and Common. Each file contains unique information about the building. Next, you’ll use the Xref command to recombine these files for the different floor plans in your building.

Assembling Xrefs to Build a Drawing

You’ll now create composite files for each floor using Xrefs of only the files needed for the individual floors. You’ll use the Attach option of the Xref command to insert all the files you exported from the Plan file.

Follow these steps to create a file representing the first floor:

1. Close the Common.dwg file, open a new file, and call it Xref-1.
2. For Imperial measurement users, use the Drawing Units dialog box (Units↵) to set up the drawing units type to Architectural and the Insertion scale to Inches. Use the Limits command to set the lower-left corner at 0,0 and the upper-right corner at 2112,1632. Metric users should set the drawing units type to Decimal and the Insertion scale to Centimeters. Set the lower-left corner limits to 0,0 and the upper-right corner limits to 5940 cm × 4200 cm. For both measurement systems, click All from the Zoom flyout on the View tab’s Navigate panel or type ZA↵ so your drawing area is adjusted to the window.
3. Set the Ltscale value to 192. Metric users should set it to 200.
c15i001.tif
4. Click Attach from the Insert tab’s Reference panel or type XA↵ to open the Select Reference File dialog box.
5. Locate and select the Common.dwg file.
6. In the Attach External Reference dialog box, make sure the Specify On-Screen check box in the Insertion Point group isn’t selected. Then make sure the X, Y, and Z values in the Insertion Point group are all 0 (see Figure 15-5). Because the insertion points of all the files are the same (0,0), they will fit together perfectly when they’re inserted into the new files.
7. Click OK. The Common.dwg file appears in the drawing.

The drawing may appear faded. This is because AutoCAD has a feature that allows you to fade an Xref so that it is easily distinguished from other objects in your current drawing. You can quickly change the reference fade setting by doing the following:

1. In the Insert tab’s expanded Reference panel, locate the Xref Fading slider.
2. Click and drag the Xref Fading slider all the way to the left, or you can click in the Xref Fading slider value box to the right and enter 0↵.

Figure 15-5 The Attach External Reference dialog box

c15f005.tif

Your Xref should now appear solid. Remember the Xref Fading slider; you may find that you’ll need it frequently when working with Xrefs.

Now continue to add some reference files:

1. Click Attach from the Reference panel, and then locate, select, and insert the Floor1 or Floor1-metric file.
2. Repeat step 1 to insert the Col-grid.dwg or Col-grid-metric.dwg file as an Xref. You now have the plan for the first floor.
3. Save this file.

Next, use the current file to create another file representing a different floor:

1. Choose Save As from the Application menu and save this file as Xref-2.dwg.
2. Click the External References tool in the Insert tab’s Reference panel title bar, or type XR↵.
c15uf001.tif
3. In the External References palette, select Floor1 in the list of Xrefs. Notice that as you hover over the Floor1 name, a description of the file appears with a thumbnail view (see Figure 15-6). This can help you quickly identify Xref files in the list.

Figure 15-6 Highlight Floor1 in the list of Xrefs.

c15f006.tif
4. Right-click and select Detach from the context menu.
5. Right-click in the blank portion of the list in the External References palette and select Attach DWG from the context menu.
6. Locate and select Floor2.dwg.
7. In the Attach External Reference dialog box, make sure the X, Y, and Z values in the Insertion Point group are all set to 0.
8. Click OK. The Floor2 drawing appears in place of Floor1. Turn off the Notes layer to see the plan clearly.

Now when you need to make changes to Xref-1 or Xref-2, you can edit their individual Xref files. The next time you open Xref-1 or Xref-2, the updated Xrefs will automatically appear in their most recent forms.


Locating Xref Files
If you move an Xref file after you insert it into a drawing, AutoCAD may not be able to find it later when you attempt to open the drawing. If this happens, you can click the Browse button of the Saved Path option at the bottom of the External References palette to tell AutoCAD the new location of the Xref file. The Browse button appears at the far right of the Saved Path text box when you click in the text box.
If you know that you’ll be keeping your project files in one place, you can use the Projectname system variable in conjunction with the Options dialog box to direct AutoCAD to look in a specific location for Xref files. Here’s what to do:
1. Choose Options from the Application menu or type OP↵.
2. Click the Files tab and then locate and select the Project Files Search Path option.
3. Click Add and either enter a name for your project or accept the default name of Project1.
4. Click Browse and locate and select the folder where you plan to keep your Xref files.
5. Close the Options dialog box, and then enter Projectname↵ at the command-line interface. Enter the project name you used in step 3.
6. Save your file so it remembers this setting.

Xrefs don’t need to be permanent. As you saw in the previous exercise, you can attach and detach them easily at any time. This means that if you need to get information from another file—to see how well an elevator core aligns, for example—you can temporarily attach the other file as an Xref to check alignments quickly and then detach it when you’re finished.

Think of these composite files as final plot files that are used only for plotting and reviewing. You can then edit the smaller, more manageable Xref files. Figure 15-7 illustrates the relationship of these files.

Figure 15-7 A diagram of Xref file relationships

c15f007.eps

The combinations of Xrefs are limited only by your imagination.


Keeping Track of Xref Locations
Because Xref files don’t become part of the file into which they’re referenced, you must take care to keep them in a location where AutoCAD can find them when the referencing file is opened. This can be a minor annoyance when you need to send files to others outside your office. To help keep track of Xrefs, choose Publish ⇒ eTransmit from the Application menu. See Chapter 27 for details.

Updating Blocks in Xrefs

Several advantages are associated with using Xref files. Because the Xrefs don’t become part of the drawing file’s database, the referencing files remain small. Also, because Xref files are easily updated, work can be split up among several people in a workgroup environment or on a network. For example, for your hypothetical apartment building project, one person can be editing the Common file while another works on Floor1, and so on. The next time the composite Xref-1.dwg or Xref-2.dwg file is opened, it automatically reflects any new changes made in the Xref files. If the Xref is updated while you still have the receiving file open, you see a balloon message telling you that an Xref requires a reload.

Let’s see how to set this up:

1. Save and close the Xref-2 file, and then open the Common.dwg file.
c15i002.tif
2. Update the unit plan you edited earlier in this chapter. Click Insert in the Home or Insert tab’s Block panel. You can also type Insert↵.
3. In the Insert dialog box, click the Browse button and then locate and select your Unit.dwg file. If you can’t find your Unit.dwg file, you can use 15b-unit.dwg (or 15b-dwg-metric.dwg for metric users) from the Chapter 15 sample files, but make sure you rename the file you use to Unit.dwg before you insert it. You may also use the method described in the “Substituting Blocks” sidebar in Chapter 7 to insert 15b-unit.dwg or 15b-dwg-metric.dwg without renaming the file.
4. At the warning message, click Redefine Block.
5. At the Insertion point: prompt, press the Esc key.
6. Enter RE↵ to regenerate the drawing. You see the new unit plan in place of the old one (see Figure 15-8). You may also see all the dimensions and notes for each unit.

Figure 15-8 The Common file with the revised unit plan

c15f008.tif
7. If the Notes layer is on, use the layer drop-down list to turn it off.
c15i003.tif
8. Click the Insert tool in the Block panel again, and replace the empty room across the hall from the lobby with the utility room (utility.dwg or utility-metric.dwg) (see Figure 15-9).
9. Save the Common file.

Figure 15-9 The utility room inserted

c15f009.eps
10. Open the Xref-1 file, right-click Common in the External References palette, and select Reload from the context menu. You can also right-click the Manage Xrefs icon in the lower-right corner of the AutoCAD window and select Reload DWG Xrefs. You see the utility room and the typical units in their new form. Your drawing should look like the top image in Figure 15-10.
11. Open Xref-2. You see that the utility room and typical units are updated in this file as well. (See the bottom image in Figure 15-10.)

Figure 15-10 The Xref-1 and Xref-2 files with the units updated

c15f010.eps

Importing Named Elements from Xrefs

Chapter 5, “Keeping Track of Layers and Blocks,” discussed how layers, blocks, linetypes, and text styles—called named elements—are imported along with a file that is inserted into another file. Xref files don’t import named elements. You can, however, review their names and use a special command to import the ones you want to use in the current file.


Saving Xref Layer Settings
You can set the Visretain system variable to 1 to force AutoCAD to remember layer settings of Xref files. Another choice is to turn on the Retain Changes To Xref Layers option in the Open And Save tab of the Options dialog box. You can also use the Layer States Manager in the Layer Properties Manager dialog box to save layer settings for later recall. The Layer States Manager is described in detail in the section “Saving and Recalling Layer Settings” later in this chapter.

AutoCAD renames named elements from Xref files by giving them the prefix of the filename from which they come. For example, the Wall layer in the Floor1 file is called Floor1|WALL in the Xref-1 file; the Toilet block is called Floor1|TOILET. You can’t draw on the layer Floor1|WALL, nor can you insert Floor1|TOILET, but you can view Xref layers in the Layer Properties Manager dialog box, and you can view Xref blocks by using the Insert dialog box.

Next, you’ll look at how AutoCAD identifies layers and blocks in Xref files, and you’ll get a chance to import a layer from an Xref:

1. With the Xref-1 file open, open the Layer Properties Manager palette. Notice that the names of the layers from the Xref files are all prefixed with the filename and the vertical bar (|) character. Exit the Layer Properties Manager palette. You can also open the Layer drop-down list to view the layer names.
2. Enter XB↵ to open the Xbind dialog box. You see a listing of the current Xrefs. Each item shows a plus sign to the left. This list box follows the Microsoft Windows format for expandable lists, much like the tree view in Windows Explorer (see Figure 15-11).

Figure 15-11 The Xbind dialog box

c15f011.tif
3. Click the plus sign next to the Floor1 Xref item. The list expands to show the types of elements available to bind (see Figure 15-12).

Figure 15-12 The expanded Floor1 list

c15f012.tif
4. Click the plus sign next to the Layer item. The list expands further to show the layers available for binding (see Figure 15-13).

Figure 15-13 The expanded Layer list

c15f013.tif
5. Locate Floor1|WALL in the list, click it, and then click the Add button. Floor1|WALL is added to the list to the right, Definitions To Bind.
6. Click OK to bind the Floor1|WALL layer.
7. Open the Layer Properties Manager dialog box.
8. Scroll down the list and look for the Floor1|WALL layer. You won’t find it. In its place is a layer called Floor1$0$WALL.

Import Drawing Components with DesignCenter
The AutoCAD DesignCenter™ lets you import settings and other drawing components from any drawing, not just Xref drawings. You’ll learn more about the DesignCenter in Chapter 27.

As you can see, when you use Xbind to import a named item, such as the Floor1|WALL layer, the vertical bar (|) is replaced by two dollar signs surrounding a number, which is usually 0. (If for some reason the imported layer name Floor1$0$WALL already exists, the 0 in that name is changed to 1, as in Floor1$1$WALL.) Other named items are renamed in the same way, using the $0$ replacement for the vertical bar.

You can also use the Xbind dialog box to bind multiple layers as well as other items from Xrefs attached to the current drawing. You can bind an entire Xref to a drawing, converting it to a simple block. By doing so, you have the opportunity to maintain unique layer names of the Xref being bound or to merge the Xref’s similarly named layers with those of the current file. See Chapter 7 for details.


Nesting Xrefs and Using Overlays
Xrefs can be nested. For example, if the Common.dwg file created in this chapter used the Unit.dwg file as an Xref rather than as an inserted block, you would still get the same result in the Xref-1.dwg file. That is, you would see the entire floor plan, including the unit plans, when you opened Xref-1.dwg. In this situation, Unit.dwg would be nested in the Common.dwg file, which is in turn externally referenced in the Xref-1.dwg file.
Although nested Xrefs can be helpful, take care in using Xrefs this way. For example, you might create an Xref by using the Common.dwg file in the Floor1.dwg file as a means of referencing walls and other features of the Common.dwg file. You might also reference the Common.dwg file into the Floor2.dwg file for the same reason. After you did this, however, you’d have three versions of the Common plan in the Xref-1.dwg file because each Xref would have Common.dwg attached to it. And because AutoCAD would dutifully load Common.dwg three times, Xref-1.dwg would occupy substantial computer memory, slowing your computer when you edited the Xref-1.dwg file.
To avoid this problem, use the Overlay option in the Attach External Reference dialog box. An overlaid Xref can’t be nested. For example, if you use the Overlay option when inserting the Common.dwg file into the Floor1.dwg and Floor2.dwg files, the nested Common.dwg files are ignored when you open the Xref-1.dwg file, thereby eliminating the redundant occurrence of Common.dwg. In another example, if you use the Overlay option to import the Unit.dwg file into the Common.dwg file and then attach the Common.dwg into Xref-1.dwg as an Xref, you don’t see the Unit.dwg file in Xref-1.dwg. The nested Unit.dwg drawing is ignored.
If you have used the Attach option to insert an Xref and want to change it to Overlay, you can do so in the External References palette. Click the External References icon in the Insert tab’s Reference panel’s title bar, and then in the External References palette, right-click the name of the Xref you want to change and select Xref Type ⇒ Overlay. Use the same steps to convert an Overlay Xref into an Attached Xref, but use Xref Type ⇒ Attach after you right-click on the Xref name.

Controlling the Xref Search Path

One problem AutoCAD users encountered in the past was lost or broken links to an Xref. This occurs when an Xref file is moved from its original location or when you receive a set of drawings that includes Xrefs. The Xref links are broken because AutoCAD doesn’t know where to look.

When you insert an Xref, the Attach External Reference dialog box opens, offering you options for insertion point, scale, and rotation. This dialog box also provides the Path Type option, which enables you to select a method for locating Xrefs. You can choose from three path type options:

Absolute Path Lets you specify the exact filename and path for an Xref, including the disk drive or network location. Use this option when you want AutoCAD to look in a specific location for the Xref.
Relative Path Lets you specify a file location relative to the location of the current or host drawing. For example, if the host drawing is in a folder called C:mycadfiles and the Xrefs are in a folder called C:mycadfilesxrefs, you can specify .xrefs for the location of the Xref file. This option is useful when you know you’ll maintain the folder structure of the host and Xref files when moving or exchanging these files. Note that because this is a relative path, this option is valid only for files that reside on the same local hard disk.
No Path Perhaps the most flexible option, No Path tells AutoCAD to use its own search criteria to find Xrefs. When this option is selected, AutoCAD first looks in the same folder of the host drawing; then it looks in the project search path defined in the Files tab of the Options dialog box. (See Appendix B, “Installing and Setting Up the Autodesk AutoCAD Software,” for more on the Options dialog box.) Finally, AutoCAD looks in the Support File Search Path option, also defined in the Files tab of the Options dialog box. If you plan to send your files to a client or a consultant, you may want to use this option.

You can change the path type using two features in the External References palette. First, select the Xref or Xrefs you want to change, then right-click and select Path in the context menu. You will see three options: Make Absolute, Make Relative and Remove Path. Select the option you desire for the selected Xrefs. You can also click the Change Path tool in the External References palette toolbar.

c15uf002.tif

Managing Layers

In a survey of AutoCAD users, Autodesk discovered that one of the most frequently used features in AutoCAD is the Layer command. You’ll find that you turn layers on and off to display and edit the many levels of information contained in your AutoCAD files. As your files become more complex, controlling layer visibility becomes more difficult. Fortunately, AutoCAD offers the Layer States Manager to make your work a little easier.

Saving and Recalling Layer Settings

The Layer States Manager lets you save layer settings. This can be crucial when you’re editing a file that serves multiple uses, such as a floor plan and reflected ceiling plan. You can, for example, turn layers on and off to set up the drawing for a reflected ceiling plan view and then save the layer settings. Later, when you need to modify the ceiling information, you can recall the layer settings to view the ceiling data.

The following steps show you how the Layer States Manager works:

c15i004.tif
1. In AutoCAD, open the 15b-unit.dwg file. Click the Layer Properties tool in the Home tab’s Layers panel to open the Layer Properties Manager, and turn on all the layers except Notes and Flr-pat. Your drawing should look similar to the top image in Figure 15-14.

Figure 15-14 The view of the 15b-unit.dwg file before and after changing layer settings

c15f014.eps
2. Click the Unsaved Layer State drop-down list in the Home tab’s Layers panel.
c15uf003.tif
3. Click Manage Layer States to open the Layer States Manager dialog box. Take a moment to look at the options in this dialog box. This is where you can specify which layer settings you want saved with this layer state (see Figure 15-15).

Figure 15-15 The Layer States Manager dialog box

c15f015.tif
4. You’re ready to save the current layer state. Click the New button in the Layer States Manager dialog box. The New Layer State To Save dialog box opens (see Figure 15-16).

Figure 15-16 The New Layer State To Save dialog box

c15f016.tif
5. Enter blank floor plan in the New Layer State Name box. Note that you can also enter a brief description of your layer state. Click OK to return to the Layer States Manager dialog box.
6. Click the More Restore Options button (see Figure 15-17) in the lower-right corner of the Layer States Manager dialog box to expand the list of options.

Figure 15-17 The More Restore Options button

c15f017.tif
7. Make sure the On/Off check box is selected, and then click Close. Several other options are available, but you can leave them as they are.
8. Back in the Layer Properties Manager dialog box, turn on the Flr-pat and Notes layers and turn off the Ceiling layer.
9. Your drawing looks like the bottom image in Figure 15-14.

You’ve just saved a layer state and then changed the layer settings to something different from the saved state. The following steps demonstrate how you can restore the saved layer state:

1. In the Home tab’s Layers panel, click the Unsaved Layer State drop-down list and select Manage Layer States to open the Layer States Manager dialog box.
2. Select Blank Floor Plan from the list, and click Restore. Your drawing reverts to the previous view with the Notes and Flr-pat layers turned off and the Ceiling layer turned on.
3. This brings you to the end of the Layer States Manager exercise. Save the file and close it.

The layer states are saved with the file so that you can retrieve them at a later date. As you can see in the Layer States Manager dialog box, you have a few other options, as shown in Table 15-1.

Table 15-1: Layer States Manager dialog box options

OptionPurpose
NewCreates a new layer state.
SaveSaves the selected layer state after edits.
EditLets you edit the layer settings for the selected layer state.
RenameRenames a selected layer state.
DeleteDeletes a layer state from the list.
ImportImports a set of layer states that have been exported using the Export option of this dialog box.
ExportSaves a set of layer states as a file. By default, the file is given the name of the current layer state with the .las filename extension. You can import the layer-state file into other files.
Layer Properties To Restore (in the expanded dialog box)Lets you select the layer properties to be controlled by the Layer States Manager.
c15i005.tif

In addition to saving layer states by name, you can quickly revert to a previous layer setting by clicking the Previous tool on the Home tab’s Layers panel. This tool enables you to revert to the previous layer settings without affecting other settings in AutoCAD. Note that Previous mode doesn’t restore renamed or deleted layers, nor does it remove new layers.

After you become familiar with these layer-state tools, you’ll find yourself using them frequently in your editing sessions.

Other Tools for Managing Layers

There are quite a number of tools that help you quickly set up layers as you work. In the following sections, you’ll learn about some of those other tools you’ve seen in the Layers panel. All the tools discussed in these sections have keyboard command equivalents. Check the tool tip for the keyboard command name when you select one of these tools from the Layers panel.

Using Layer Walk to Explore Layers

When you work with a file that was produced by someone else, you usually have to spend some time becoming familiar with the way layers are set up in it. This process can be tedious, but the Layer Walk tool can help.

As the name implies, the Layer Walk tool lets you “walk through” the layers of a file, visually isolating each layer as you select its name from a list. You can use Layer Walk to select the layers that you want visible, or you can turn layers on and off to explore a drawing without affecting the current layer settings. To open the LayerWalk dialog box, do the following:

c15i006.tif
1. Click the Layer Walk tool on the expanded Layers panel, or enter Laywalk↵.
2. The LayerWalk dialog box appears (see Figure 15-18).

Figure 15-18 The LayerWalk dialog box

c15f018.tif

You can click and drag the bottom edge of the dialog box to expand the list so that you can see all the layers in the drawing. When you first open the LayerWalk dialog box, you see the current visible layers selected. Layers that are off aren’t selected. Click a single layer and AutoCAD displays just that layer. With a single layer selected, you can “walk” through the layers by pressing the down and up arrow keys.

You can use this dialog box to set up layer settings visually by Ctrl+clicking layer names to make them visible. Turn off Restore On Exit to maintain the layer settings you set up in the LayerWalk dialog box, or turn it on if you want the drawing to revert to the layer settings that were in place before you opened the LayerWalk dialog box. Right-click the list of layers to display a set of other options that let you save the layer state and invert the selection.

Changing the Layer Assignment of Objects

In addition to the Layer Walk tool, the Layers panel includes two tools that change the layer assignments of objects: the Match tool and the Change To Current Layer tool on the expanded Layers panel.

c15i007.tif

The Match tool is similar to the Match Properties tool, but it’s streamlined to operate only on layer assignments. After clicking this tool in the Layers panel, select the object or objects you want to change, press ↵, and then select an object whose layer you want to match.

c15i008.tif

The Change To Current Layer tool on the expanded Layers panel changes an object’s layer assignment to the current layer.

Controlling Layer Settings Through Objects

The remaining Layer tools let you make layer settings by selecting objects in the drawing. These tools are easy to use: click a tool, and then select an object.

The following list describes each tool:

c15i009.tif
Layer Isolate/Layer Unisolate Layer Isolate turns off all the layers except for the layer of the selected object. Layer Unisolate restores the layer settings to the way the drawing was set before you used Layer Isolate.
c15i010.tif
Freeze Freezes the layer of the selected object.
c15i011.tif
Off Turns off the layer of the selected object.
c15i012.tif
Lock/Unlock Locks the layer of the selected object. A locked layer is visible but can’t be edited.
c15i013.tif
Layer Walk Lets you dynamically change layer visibility.
c15i014.tif
Copy Objects To New Layer Copies an object or a set of objects to a different layer.
c15i015.tif
Make Object’s Layer Current Enables you to set the current layer by selecting an object that is on the desired layer.
c15i016.tif
Turn All Layers On Turns all layers on.
c15i017.tif
Thaw All Layers Thaws all layers.
c15i018.tif
Isolate To Current Viewport Enables you to freeze layers in all but the current viewport by selecting objects that are on the layers to be frozen.
c15i019.tif
Merge Combines several layers into one layer. First select objects whose layers you want to merge, press ↵, and then select an object whose layer you want to merge with.
c15i020.tif
Delete Deletes all objects on a layer and then deletes the layer.

Merging Multiple Layers Into One Layer

If you find that you have several layers that you want to merge into one layer, you can use the Merge option in the Layer Manager. You can merge a single layer or a set of layers into an existing layer, other than one that has been selected. If the layer you want to use for the merge does not exist, create it first. Then in the Layer Manager, select the layer or layers you want to merge, right-click and select the Merge Selected Layer(s) To… option. The Merge To Layer dialog box appears (see Figure 15-19). You can select the layer name from the list. The merged layers are automatically purged from the drawing.

Figure 15-19 The Merge To Layer dialog box

c15f019.tif

Using Advanced Tools: Filter and Quick Select

Two other tools are extremely useful in your day-to-day work with AutoCAD: selection filters and Quick Select. We’ve saved the discussion of these tools until this part of the chapter because you don’t need them until you’ve become accustomed to the way AutoCAD works. Chances are that you’ve already experimented with some of the AutoCAD menu options not yet discussed in the exercise. Many of the drop-down menu options and their functions are self-explanatory. Selection filters and QuickCalc (the latter is discussed later in this chapter) don’t appear in any of the menus and require further explanation.

Let’s start with selection filters. AutoCAD includes two selection-filtering tools: The Quick Select tool offers a quick way to locate objects based on their properties. The Filter tool lets you select objects based on a more complex set of criteria.

Filtering Selections

Suppose you need to isolate just the walls of your drawing in a separate file. One way to do this is to turn off all the layers except the Wall layer. You can then use the Wblock command and select the remaining walls, using a window to write the wall information to a file. Filters can simplify this operation by enabling you to select groups of objects based on their properties.


Getting Notification of New Layers
AutoCAD can notify you when new layers are added to Xrefs in a drawing or to the current drawing itself. Such new layers are called unreconciled layers. This feature can be helpful when you are working with others and need to stay informed about the condition of a drawing. By default, the notification comes in two forms. When new layers are added, a warning icon appears in the right side of the status bar. If you attempt to plot a drawing that contains new layers, the following message appears: Unreconciled new layers exist in the drawing. The warning will not prevent you from doing anything. It is just intended as a way to notify you of changes. In addition, the unreconciled layers are grouped into a layer property filter called Unreconciled New Layers, which can be viewed in the Layer Properties Manager.
To “reconcile” unreconciled layers, open the Layer Properties Manager, select the unreconciled layers, and right-click and select Reconcile Layers from the context menu.
New layer notification is turned on by default and is controlled by the Layerevalctl system variable. Type Layerevalctl1↵ to turn it on and Layerevalctl0↵ to turn it off.
You can also set how you are notified of new layers through the Layereval and Layernotify system variables. Layereval controls when the Unreconciled New Layer filter displays new layers and can be set to 0, 1, or 2. The setting 0 turns Layereval off, 1 sets it to detect new layers in Xrefs, and 2 sets it to detect new layers in Xrefs and the current drawing. Layernotify determines how you are notified of new layers. The setting 0 means no notification; 1 means notify when you start a plot; 2 when the drawing is open; 4 when Xrefs are loaded, reloaded, or attached; 8 when you are restoring a layer state; 16 when you are saving a file; and 32 when you are inserting a drawing.

Follow these steps to select objects based on their layer assignment:

1. Open the Unit file.
2. Type W↵ to start the Wblock command. Then, in the Write Block dialog box, enter Unitwall in the File Name And Path input box.
3. Make sure the Objects and Retain radio buttons are selected in the dialog box, and then click the Select Objects button in the Objects group. The dialog box closes so that you can select objects.
4. At the Select Objects: prompt, type 'Filter↵ to open the Object Selection Filters dialog box (see Figure 15-20).

Figure 15-20 The Object Selection Filters dialog box

c15f020.tif
5. Open the drop-down list in the Select Filter group.
6. Scroll down the list, and find and highlight the Layer option.
7. Click the Select button next to the drop-down list to display a list of layers. Highlight Wall, and click OK.
8. Click the Add To List button toward the bottom of the Select Filter group to add Layer = Wall to the list box.
9. Click Apply to close the Object Selection Filters dialog box.
10. Type ALL↵ to select everything in the drawing. Only the objects assigned to the Wall layer are selected. You see a message in the Command window indicating how many objects were found.
11. Press ↵. You see the message Exiting Filtered selectionResuming WBLOCK command – Select objects:29 found.
12. Press ↵ again to complete the selection, and then click OK to complete the Wblock command. All the walls are written out to a file called Unitwall.

In this exercise, you filtered out a layer by using the Filter command. After you designate a filter, you then select the group of objects through which you want AutoCAD to filter. AutoCAD finds the objects that match the filter requirements and passes those objects to the current command.

As you’ve seen from the previous exercise, you can choose from many options in this utility. Let’s take a closer look.

Working with the Object Selection Filters Dialog Box

To use the Object Selection Filters dialog box, first select the criterion for filtering from the drop-down list. If the criterion you select is a named item (layer, linetype, color, or block), you can then click the Select button to choose specific items from a list. If there is only one choice, the Select button is dimmed.

After you’ve determined what to filter, you must add it to the list by clicking the Add To List button. The filter criterion then appears in the list box at the top of the Object Selection Filters dialog box, and you can apply that criterion to your current command or to a later command. AutoCAD remembers your filter settings, so if you need to reselect a filtered selection set, you don’t have to redefine your filter criteria.

Saving Filter Criteria

If you prefer, you can preselect filter criteria. Then, at any Select objects: prompt, you can type Filter↵, highlight the appropriate filter criteria in the list box, and click Apply. The specifications in the Object Selection Filters dialog box remain in place for the duration of the current editing session.

You can also save a set of criteria by entering a name in the input box next to the Save As button and then clicking the button. The criteria list data is saved in a file called Filter.nfl in the C:UsersUser NameAppDataRoamingAutodeskAutoCAD 2014R19.1enuSupport folder. You can access the criteria list at any time by opening the Current drop-down list and choosing the name of the saved criteria list.

Filtering Objects by Location

Notice the X, Y, and Z drop-down lists just below the main Select Filter drop-down list in the Object Selection Filters dialog box. These lists become accessible when you select a criterion that describes a geometric property or a coordinate (such as an arc’s radius or center point). You can use these lists to define filter selections even more specifically, using greater than (>), less than (<), equal to or greater than (>=), equal to or less than (<=), equal to (=), or not equal to (!=) (called relational operators).

For example, suppose you want to grab all the circles whose radii are greater than 4.0 units. To do this, choose Circle Radius from the Select Filter drop-down list. Then, in the X list, select >. Enter 4.0 in the input box to the right of the X list, and click Add To List. The items

Circle Radius > 4.0000
Object = Circle

are added to the list box at the top of the dialog box. You used the > operator to indicate a circle radius greater than 4.0 units.

Creating Complex Selection Sets

At times, you’ll want to create a specific filter list. For instance, say you need to filter out all the Door blocks on the layer Floor2 and all arcs with a radius equal to 1. To do this, you use the grouping operators found at the bottom of the Select Filter drop-down list. You’ll need to build a list as follows:

** Begin OR
** Begin AND
Block Name = Door
Layer = Floor2
** End AND
** Begin AND
Entity = Arc
Arc Radius = 1.0000
** End AND
** End OR

Notice that the Begin and End operators are balanced; that is, for every Begin OR or Begin AND, there is an End OR or End AND.

This list may look simple, but it can get confusing. If criteria are bounded by the AND grouping operators, objects must fulfill both criteria before they’re selected. If criteria are bounded by the OR grouping operators, objects fulfilling either criteria will be selected. If you add the wrong option accidentally, select it from the list and click the Delete button. If you need to insert an option in the middle of the list, select the item that comes after the item you want to insert, and then select and add the item.

Here are the steps to build the previous list:

1. In the Select Filter drop-down list, choose **Begin OR, and then click Add To List. Do the same for **Begin AND.
2. Click Block Name in the Select Filter drop-down list, click the Select button, and select Door from the list that appears. Click Add To List.
3. For the layer, click Layer in the Select Filter drop-down list. Click Select, choose the layer name, and click Add To List.
4. In the Select Filter drop-down list, choose **End AND, and then click Add To List. Do the same for **Begin AND.
5. Select Arc from the Select Filter drop-down list, and click Add To List.
6. Select Arc Radius from the Select Filter list, and enter 1.0 in the input box next to the X drop-down list. Be sure the equal sign (=) shows in the X drop-down list, and then click Add To List.
7. Choose **End AND, and click Add To List. Do the same for **End OR.

If you make an error in any step, highlight the item, select an item to replace it, and click the Substitute button instead of the Add To List button. If you need only to change a value, click the Edit Item button near the center of the dialog box.


Quick Access to Your Favorite Commands
As IT managers, we’ve discovered that AutoCAD users are possessive of their keyboard and tool shortcuts, and they are usually the first custom item that a new employee will install. You can collect your favorite commands into a single toolbar or Ribbon panel by using the AutoCAD customization feature. This way, you can have ready access to your most frequently used commands. Chapter 26, “Customizing Toolbars, Menus, Linetypes, and Hatch Patterns,” gives you all the information you need to create your own custom toolbars and Ribbon panels.

Using Quick Select

The Filter command offers a lot of power in isolating specific types of objects, but in many situations you may not need such an elaborate tool. The Qselect dialog box can filter your selection based on the object properties, which are the more common filter criteria. To access the Qselect dialog box, click Quick Select in the Home tab’s Utilities panel, or right-click the drawing area when no command is active and choose Quick Select from the context menu.

Quick Select is also offered as an option in a few other dialog boxes. Try using the Wblock command again, this time using the Quick Select option offered in its dialog box:

1. With the Unit file open, type W↵ to start the Wblock command. Then, in the Write Block dialog box, enter Unitwall2 in the File Name And Path input box.
2. Make sure the Objects radio button is selected at the top of the dialog box and the Delete From Drawing option is selected from the Objects group.
c15i021.tif
3. Click the Quick Select tool to the right of the Select Objects button in the Objects group to open the Quick Select dialog box (see Figure 15-21).

Figure 15-21 The Quick Select dialog box

c15f021.tif
4. Select Layer from the Properties list.
5. Select Wall from the Value drop-down list near the bottom of the dialog box.
c15i022.tif
6. Click the Select Objects button in the upper-right corner of the dialog box. The dialog boxes close so that you can select objects.
7. Select the entire drawing by using a window; press ↵ to finish your selection. Both dialog boxes return.
8. Click OK, and then click OK in the Write Block dialog box. The walls disappear, indicating that they have been written to a file.
9. Click the Undo button to undo the deletion.

The Qselect command selects objects based on their properties, as shown in the Properties list box. You can apply the selection criteria based on the entire drawing, or you can use the Select Objects button in the upper-right corner of the dialog box to isolate a set of objects to which you want to apply the selection criteria.

In the previous exercise, you used Quick Select from within another dialog box. As mentioned earlier, you can also use Quick Select by clicking Quick Select in the Home tab’s Utilities panel or by right-clicking the drawing area when no command is active and choosing Quick Select from the context menu. Quick Select then uses the Noun/Verb selection method: You select objects using Quick Select first, and then you apply editing commands to the selected objects.

If you want to use Quick Select with a command that doesn’t allow the Noun/Verb selection method, you can select objects by using Quick Select, start the command you want to use, and then use the Previous Selection option.

Here is a description of the Quick Select dialog box options:

Apply To Lets you determine the set of objects to which you want to apply the Quick Select filters. The default is the entire drawing, but you can use the Select Objects button to select a set of objects. If you select a set of objects before issuing the Quick Select command, you also see the Current Selection option in the Apply To drop-down list.
Object Type Lets you limit the filter to specific types of objects such as lines, arcs, circles, and so on. The Multiple option lets you filter your selection from all the objects in the drawing regardless of type.
Properties Lets you select the property of the object type you want to filter, after you select an object type. The Properties list changes to reflect the properties that are available to be filtered.
Operator Offers a set of criteria to apply to the property you select in the Properties list to make your selection. You can select objects that are equal to or not equalto the criteria you select in the Object Type and Properties lists. Depending on the property you select, you also may have the option to select objects that are greater than or less than a given property value. For example, you can select all lines whose x-coordinate is less than 5 by choosing Line from the Object Type drop-down list and Start X from the Properties list. You then select < Less Than from the Operator drop-down list and enter 5 in the Value box.
Value Displays the values of the property you select in the Properties list. For example, if you select Layer from the Properties list, the Value option lists all the layers available.
How To Apply Lets you specify whether to include or exclude the filtered objects in a new selection set.
Append To Current Selection Set Lets you append the filtered objects to an existing selection set or create an entirely new selection set.

Select Similar Objects or Isolate Object for Easier Editing
cert.eps
There are a few features in the right-click menu that can help speed up object selection. If you select an object and right-click, you’ll see the Select Similar option.
c15uf004.tif
Just as the name implies, it will select all objects in the drawing that are similar to the one currently selected. For example, if you select a hatch pattern, right-click, and then click Select Similar, all the hatch patterns in the drawing will be selected. Click on a line, right-click, and then click Select Similar and all the lines that are on the selected line’s layer will be selected. You can also use the Selectsimilar command to do the same thing.
You can control how the Select Similar feature behaves by entering SelectsimilarSE↵. This opens the Select Similar Settings dialog box, which lets you set the basis for the similar selection such as layer, color, or linetype, to name a few.
Another handy right-click option is Isolate. If you have a set of objects and you right-click and select Isolate ⇒ Isolate Objects, all but the selected objects will be made invisible. Or you can right-click and select Isolate ⇒ Hide Objects to hide the selected objects. To bring back the objects that were made invisible, right-click and select Isolate ⇒ End Object Isolation.
The Isolate feature can also be issued from the Isolate Objects tool on the right side of the status bar. It’s the icon that looks like a lightbulb. Click this tool and then select Isolate Objects or Hide Objects from the menu that appears. You can then select the objects you want to isolate or hide. Or you can use the Isolateobjects command.
c15uf005.tif

Using the QuickCalc Calculator

c15i023.tif

You may have noticed a calculator icon in some of the options in the Properties palette or in the right-click context menu. This is the QuickCalc tool. If you click it, you’ll see the QuickCalc calculator, shown in Figure 15-22. At first glance, it looks like a typical calculator. It has the standard math as well as the scientific functions that are available when you click the More button. If your view of QuickCalc doesn’t look like Figure 15-22, click the More/Less button and then expand the Number Pad or Scientific section by clicking the arrow in the title bar. You’ll also see a section for converting units, which comes in handy when you want to find the metric equivalent of an Imperial measurement.

Figure 15-22 QuickCalc and its parts

c15f022.eps

At the bottom is a section for variables. This area lets you store custom formulas and values to which you want to refer frequently.

Near the top is the display area. This is where QuickCalc keeps a running record of your calculation results. It also allows you to recall both the results and formulas you’ve used. Just below the display area is the input box. As you type, or as you click the keys of QuickCalc, your input appears in this box. Pressing Enter displays the resulting value both in the input box and in the display area.

Above the display area is a set of tools. These tools let you obtain other types of data from the drawing, such as the coordinate of a point or the intersection of two lines (see Figure 15-23).

Figure 15-23 The QuickCalc tools

c15f023.eps

The function of these tools will become clearer as you become familiar with QuickCalc. Table 15-2 describes each tool. Next, you’ll get a chance to try out QuickCalc on some typical AutoCAD tasks.

Table 15-2: QuickCalc tools

ToolPurpose
ClearClears the value from the input box.
Clear HistoryClears the display area.
Paste Value To Command LinePastes data from the input box to the command line.
Get CoordinatesTemporarily closes QuickCalc and prompts you to pick a point or points. Coordinates of the point or the angle value are placed in the input area.
Distance Between Two PointsTemporarily closes QuickCalc and prompts you to enter a point. Select two points; the distance between the points is placed in the input area of QuickCalc.
Angle Of Line Defined By Two PointsReturns the angle of two points.
Intersection Of Two Lines Defined By Four PointsReturns the coordinate of the intersection of four points.

Adding Foot and Inch Lengths and Finding the Sum of Angles

Although QuickCalc may look simple, it provides a powerful aid in your work in AutoCAD. Besides offering the typical calculator functions, QuickCalc also lets you quickly add and subtract angle values, feet-and-inches lengths, and much more. You can paste the results from calculations into the command line so that you can easily include results as part of command-line responses.

To get a full appreciation of what QuickCalc can do for you, try the following exercises.

Imagine that you have a renovation project for which someone has taken dimensions in the field. You may be asked to draw a section of wall for which the overall dimension isn’t given, but portions of the wall are dimensioned in a sketch, as shown in Figure 15-24.

Figure 15-24 A sketch of measurements taken from an existing building

c15f024.tif

You can use QuickCalc to add a series of feet-and-inches dimensions:

1. Open the QuickCalc.dwg sample file, which contains some lines with which you can work. It’s set up to use architectural units.
c15i024.tif
2. Right-click, and select the QuickCalc tool from the context menu.
3. Double-click in the QuickCalc input box, and then enter 4+36+56. As you type, your entry appears in the input box (see Figure 15-25).

Figure 15-25 The QuickCalc input box

c15f025.tif
4. Press ↵. The sum of the lengths, 12′-6″, appears in the input box and in the display area.

Notice that you only had to enter the foot (′) sign. QuickCalc assumes that a value is in inches unless you specify otherwise. You can also enter distances in the more traditional way using dashes and zeros, as in 4′-0″ or 5′-6″. QuickCalc ignores the dashes.

Now, suppose you want to use your newfound length to draw a line. You can quickly add the results from the input box to the command line, as shown in the following exercise:

c15i025.tif
1. Click the Line tool, and then click a point in the left portion of the drawing area.
c15i026.tif
2. In the QuickCalc toolbar, click the Paste Value To Command Line tool. Notice that the value in the input box appears in the command line.
c15i027.tif
3. Make sure the Polar Tracking mode is turned on in the status bar.
4. While pointing the rubber-banding line directly to the right, press ↵. A horizontal line is drawn to the length of 12′-6″.
5. Press ↵ to end the Line command.

In this example, you used the Paste Value To Command Line tool in the QuickCalc toolbar. If you want to use a value that has scrolled up in the display area, you can select that value, right-click, and choose Paste To Command Line (see Figure 15-26).

Figure 15-26 The Paste To Command Line option in the context menu

c15f026.tif

This approach is especially useful when you’ve used QuickCalc to add several strings of dimensions and you need to recall them individually from the display area. In addition to adding feet and inches, you can perform other math functions, such as dividing a length by 2 or multiplying a length. If the input value is in feet and inches, the resulting value is returned in feet and inches. For example, if you divide 25′ by 6, the result is 4′-2″.

Another useful QuickCalc tool is Angle Of Line Defined By Two Points, which allows you to obtain the angle defined by two points:

c15i028.tif
1. In QuickCalc, click the Angle Of Line Defined By Two Points tool. QuickCalc temporarily closes to allow you to select points.
2. With osnaps turned on, select the endpoints of the lower line, starting with the bottom endpoint, as shown in Figure 15-27.

Figure 15-27 Select these endpoints using the Angle Of Line Defined By Two Points option.

c15f027.eps
3. Back in QuickCalc, click the plus button in the number pad or enter +. Then click the Angle Of Line Defined By Two Points tool again.
4. Select the endpoints of the upper line, starting with the bottom end of the line.
5. Back in QuickCalc, you see the angle value of the second line added to the input box. Click the equal button in the QuickCalc number pad to get the total angle value.

Here you added the angle of two lines, but you could just as easily have subtracted one angle from another or multiplied the value of a single angle. This can be useful if you need to find a fraction or a multiple of an angle. For example, you might need to find one-quarter of the angle described by a line, or you might want to find the angle that bisects two lines. You can do so by adding the value of two angles, as described in the exercise, and then dividing by 2 using the number pad or by including /2 in the input box. Once you’ve obtained a value, you can paste it into the command line while specifying angles for drawing input.

Using the Display Area and Units Conversion

In addition to performing math functions on distances and angles, you can do some basic unit conversions. QuickCalc performs length, area, volume, and angle conversions in its Units Conversion group. Try the following exercise to learn how to convert a length from centimeters to feet and inches. In the process, you’ll also learn how you can move a value from the Units Conversion area to the QuickCalc input box.

Suppose you have a paper drawing that was done in metric and you need to turn it into an AutoCAD drawing in feet and inches. Here’s an example of how you can convert centimeters to feet and inches:

1. In QuickCalc, expand the Units Conversion section by clicking the arrow to the right of the Units Conversion title bar (see Figure 15-28).

Figure 15-28 The expanded Units Conversion section

c15f028.tif
2. Make sure Length appears for the Units Type option. If not, click in the box to the right of the Units Type option and select Length from the drop-down list that appears.
3. Select Centimeters from the Convert From drop-down list.
4. Select Feet from the Convert To drop-down list.
5. In the Value To Convert box, enter 450↵ for 450 cm. The equivalent value in feet appears in the Converted Value box.
6. Click the Converted Value option, and you also see the QuickCalc icon to the far right. Click this icon to display the value in the input box at the top of QuickCalc.

The value is in feet and decimal feet. You can convert the value to feet and inches by doing the following:

1. Edit the value in the input box to read as follows: 14 +(.7637795*12).
2. Press ↵. The value converts to a feet-and-inches value of 14′-93⁄16″.

One limitation to the unit-conversion feature is that it won’t take feet-and-inches input when converting from feet. For example, if you want to convert 12′-4″ to centimeters, you have to enter 12.334. In other words, you have to convert the inches to decimal feet. Because the Unit Conversion area is part of QuickCalc, this just means an extra step. You can quickly calculate the decimal feet equivalent of feet and inch values and then transfer them to the Units Conversion area.

Try the following to see how this works:

1. Click the Clear button in the QuickCalc toolbar (it looks like an eraser), and then double-click in the QuickCalc input box.
2. Enter 12 + (4 / 12)↵ in QuickCalc’s input box. The first 12 is the 12 feet. The 4 / 12 is for the 4 inches converted to decimal feet. Once you press ↵, the value of 12.3333333 appears.
3. Right-click in the QuickCalc input box, and then click in the Value To Convert box in the Units Conversion panel. The 12.3333333 value is pasted into the input box.
4. Select Feet from the Convert From drop-down list, and select Centimeters from the Convert To drop-down list. The centimeter equivalent of 12.3333333 feet appears in the Converted Value box.

Here you saw how values from the input box automatically transfer to the Units Conversion area. You can also cut and paste values from other sources into either the main calculator input box or the Units Conversion box.

Using QuickCalc to Find Points

You’ve seen how QuickCalc will let you add values of distances and angles and how it can perform unit conversions. You can also use it to calculate coordinate locations. To work with coordinates, you need to use a few special functions built into QuickCalc that let you select points and manipulate their value.

AutoCAD offers the Midpoint Between Two Points osnap, which enables you to select a point midway between two other points without drawing a temporary line. The AutoCAD Cal command offers another way to accomplish this. In the following example, you’ll use QuickCalc to perform the same function as an example of how you can acquire point data and manipulate it to derive other coordinate locations:

1. Click the Clear button on the QuickCalc toolbar; then double-click in the QuickCalc input box.
2. In the QuickCalc input box, enter (end + end)/2↵. QuickCalc closes temporarily to allow you to select points.
3. Select the endpoints of the two lines, as shown in Figure 15-29.

Figure 15-29 The endpoints of the two lines

c15f029.eps
4. QuickCalc returns and displays the coordinates of a point exactly between the two endpoints you selected in step 3.

In step 2, you used the end function that is built into QuickCalc. As you saw, the end function lets you select the endpoint of an object (as you did in step 3). The end + end in the formula tells QuickCalc to add the two coordinates you selected in step 3. The /2 in the formula divides the sum of the coordinates to find their average, which happens to be the midpoint between the two points.

If you were to perform this calculation using pencil and paper, you would add the x-, y-, and z-coordinate values of each point separately and then divide each coordinate by 2. Finally, you would combine the resulting x-, y-, and z-coordinates back into a single point location.

Using Osnap Modes in QuickCalc Expressions

In the previous exercise, you used osnap modes as part of arithmetic formulas (or expressions, as they’re called in AutoCAD). QuickCalc treats osnap modes as temporary placeholders for point coordinates until you pick the points.

The expression

(end + end)/2

finds the average of two values. In this case, the values are coordinates, so the average is the midpoint between the two coordinates. You can take this one step further and find the centroid of a triangle by using this expression:

(end + end + end)/3

Note that you enter only the first three letters of the osnap mode in calculator expressions. Table 15-3 shows what to enter in an expression for osnap modes. The table includes two items that aren’t really osnap modes, although they work similarly when they’re used in an expression. The first is Rad. When you include Rad in an expression, you get the following prompt:

Select circle, arc or polyline segment for RAD function:

You can then select an arc, a polyline arc segment, or a circle to obtain a radius for the expression.

Table 15-3: The geometry calculator’s osnap modes

Calculator osnapMeaning
EndEndpoint
InsInsert
IntIntersection
MidMidpoint
CenCenter
NeaNearest
NodNode
QuaQuadrant
PerPerpendicular
TanTangent
RadRadius of object
CurCursor pick

The other item, Cur, prompts you for a point. Instead of looking for specific geometry on an object, it just locates a point. You could have used Cur in the previous exercise in place of the End and Cen modes to create a more general-purpose midpoint locator, as in the following formula:

(cur + cur)/2

Pasting to the Command Line

Now that you have the coordinate for the midpoint, try the next exercise to apply that coordinate to a command. In this example, you’ll use the coordinate found in step 3 as the starting point for a line:

1. Click the Line tool on the Draw panel.
2. In QuickCalc, right-click the (end + end)/2 listing in the display area, and then select Paste To Command Line (see Figure 15-30).

Figure 15-30 Select Paste To Command Line.

c15f030.tif
3. The coordinate value from the display area is pasted into the command line at the Line command’s Specify first point: prompt. Press ↵ to accept the input from QuickCalc. You see a rubber-banding line beginning at a point midway between the two endpoints of the lines you selected in the previous exercise (see Figure 15-31).
4. Click another point to place the line in the drawing, and then press ↵ to exit the Line command.

Figure 15-31 Starting a line between two endpoints

c15f031.eps

Finding Fractional Distances Between Two Points

Another ability AutoCAD users commonly need is to find a location that is a fractional distance along a line. For example, users frequently need to find a point that is one-third the distance from the endpoint of a line. Here’s how that can be accomplished using QuickCalc:

1. Enter plt (end, end, 0.333)↵ in the QuickCalc input box. QuickCalc closes temporarily to allow you to select points.
2. Click the endpoints of the line shown in Figure 15-32, starting with the lower-left endpoint. QuickCalc returns with the coordinates of a point that is 33.33 percent of the length of the line from the first endpoint you selected.

Figure 15-32 Select these points to find a point that is one-third the distance from an endpoint.

c15f032.eps
3. Click the Line tool.
4. Click in the QuickCalc display area on the last entry, right-click, and choose Paste To Command Line.
5. Press ↵ and you see a line start at a point that is one-third the distance from the endpoint (see Figure 15-33).

Figure 15-33 A line starting at a point that is one-third the distance from the endpoint

c15f033.tif
6. Press Esc to exit the Line command. You don’t need to draw the line because this exercise is intended to show you only how the formula in step 1 works.

In step 1, you used a formula that contained the plt function. This function finds a point that is a particular percentage between two points. You specify the two points first, using the now-familiar end function, and then you specify the percentage between the two endpoints as a decimal value. The (end, end, 0.333) indicates the two endpoints you selected in step 2 and the percentage as a decimal value of 0.333.

In the formulas you’ve seen so far, you’ve used the end function to select endpoints. If you prefer to select your own osnaps during the point-selection process, you can use the cur function. Cur lets you use any osnap you want when selecting points. In the first example, you could use (cur + cur)/2 instead of (end + end)/2.

The plt function is just one of several special functions you can use with QuickCalc. Table 15-4 lists other functions you can use to find points in your drawing and gather other data. In the table, 2D points are represented as pt1, pt2, and so on. Three-dimensional points, or points describing a plane, are indicated by ptp1, ptp3, and so on. The center of an arc or a circle is indicated with apex for a 2D location and apex1 and apex2 for a 3D axis.

Table 15-4: Functions in QuickCalc and the formats for their use

Function and formatDescription
Getvar(system variable name)Gets the value of a system variable
Vec(pt1,pt2)Returns the vector described by the distance between the two points
Vec1(pt1,pt2)Returns the vector described by 1 unit length
Abs(vector)Returns the absolute value of the length of a vector
Cur(no arguments required)Gets a point
@(no arguments required)Returns the last point
w2u(point) and u2w(point)Converts world coordinates to current user coordinates (w2u) or user coordinates to world
Pld(pt1,pt2,distance)Returns the point on a line at a specified distance
Plt(pt1,pt2,percent)Returns the point on a line at a percentage (decimal) of the line length
Rot(pt1,apex,angle) or Rot(pt1,apex1,apex2,angle)Returns the rotation angle of a point (pt1) about an apex
Ill(pt1,pt2,pt3,pt4)Returns the intersection between two lines
Ilp(pt1,pt2,ptp1,ptp2,ptp3)Returns the intersection between a line and a plane; five points required
Dist(pt1,pt2)Returns the distance between two points
Dpl(point,pt1,pt2)Returns the shortest distance between a point and a line
Dpp(point,ptp1,ptp2,ptp3)Returns the shortest distance between a point and a plane
Rad (no arguments required)Returns a radius
Ang(vector or pt1,pt2 or apex,pt1,pt2 or apex1,pt1,pt2,apex2)Returns an angle; can use up to four parameters when working in 3D
Nor(vector or pt1,pt2or ptp1,ptp2,ptp3)Finds the normal of a vector or plane

Using QuickCalc While in the Middle of a Command

In all the previous examples, you’ve used QuickCalc as a stand-alone calculator. You’ve also seen how you can insert a calculation into the command line while a command is in progress. A third way to work with QuickCalc is to open it while in the middle of a command.

In a previous exercise, you used the (end + end)/2 formula to find the midpoint between two points, and then you inserted the resulting value into the Line command. Suppose you start the Line command before you open QuickCalc. Try the following to see how you can use QuickCalc once a command has been initiated:

1. Close QuickCalc.
2. Start the Line command.
3. Right-click and select QuickCalc from the context menu.
4. In the QuickCalc input box, enter (end + end)/2 but don’t press ↵. Instead, click the Apply button at the bottom of the QuickCalc window.
5. Select the endpoints of two lines. A line starts at the midpoint between the two points.
6. Click another point to draw the line, and then press ↵ to end the Line command.

In this exercise, you saw that an Apply option appears at the bottom of the QuickCalc window along with Close and Help buttons. These buttons aren’t present when you open QuickCalc with no command active. The Apply button executes the formula and then immediately returns the resulting value to the command. Using QuickCalc in this way eliminates a few steps.

Finding a Point Relative to Another Point

Now, suppose you want to start a line at a relative distance from another line. The following steps describe how to use the calculator to start a line from a point that is 2.5″ in the x-axis and 5.0″ in the y-axis from the endpoint of another line:

1. Make sure QuickCalc is closed, start the Line command, and select a point.
c15i029.tif
2. Right-click, select the QuickCalc tool, and enter end + [2.5,5.0] in the input box.
3. Click the Apply button at the bottom of the QuickCalc window.
4. Click the endpoint of the line you just drew. The new line connects to a point that is at a distance of 2.5 in the x-axis and 5.0 in the y-axis from the endpoint you selected.

In this example, you used the Endpoint osnap mode to indicate a point of reference. This is added to Cartesian coordinates in square brackets, describing the distance and direction from the reference point. You could enter any coordinate value within the square brackets. You also could enter a polar coordinate in place of the Cartesian coordinate, as in the following: end + [5.59<63].

You can replace the end in the expression with the at sign (@) to continue from the last point you selected. Also, it’s not necessary to include every coordinate in the square brackets. For example, to indicate a displacement in only one axis, you can leave out a value for the other two coordinates while leaving in the commas, as in the following examples:

[4,5] = [4,5,0]
[,1] = [0,1,0]
[,,2] = [0,0,2]

Combining Coordinates and Expressions

In the previous two examples, you saw that you can use an expression or enter coordinates. But what if you want to combine an expression within a coordinate? For example, in the beginning of this section, you added feet and inches and then transferred the result to the command line. In that example, you had to switch back and forth between QuickCalc and the command line to create the response for the Command prompt. If you prefer, you can create an expression that supplies the entire command input. Here are the steps to do this:

1. Close QuickCalc, and then start the Line command.
2. Right-click and select QuickCalc from the context menu.
3. Enter the following in the input box:
End + [(4+36+56)<45]
4. Click Apply.
5. In the drawing area, click the endpoint of a line. AutoCAD draws a line that begins at 12′-6′ and at a 45° angle to the endpoint you select.

In this exercise, you used the expression (4′+36+5′6) right in the middle of a coordinate value. As described earlier, the coordinate is within square brackets. By using this method, you can calculate measurements and apply them to commands more easily. The trick is to become familiar with the syntax QuickCalc requires so you can write these expressions without errors.

Storing Expressions and Values

The ability to create expressions to manipulate coordinates can be useful, but you may find it difficult to remember an expression once you’ve created it. Fortunately, QuickCalc offers the Variables section, which allows you to store frequently used expressions and values.

At the bottom of the QuickCalc window is the Variables section, which has its set of tools in its title bar (see Figure 15-34).

Figure 15-34 The Variables group

c15f034.eps

These tools let you add items to the list, edit items, or delete items from the list. A fourth option lets you send a variable to the main calculator input box. You can also right-click in the Variables section list box and select the same options from a context menu. In addition, the context menu lets you create a new category and rename an existing one.

The Variables section also contains a list of currently stored variables. Some sample variables are shown in the list. If you select a variable, you see a description of that variable’s function at the bottom of the group. You may need to click the bottom edge of the QuickCalc window and drag downward to see the description.

To use an existing variable, select it from the list and click the Return Variable To Input Area button; it looks like a calculator. To add a variable to the list, click the New Variable button, which opens the Variable Definition dialog box (see Figure 15-35).

Figure 15-35 The Variable Definition dialog box

c15f035.tif

This dialog box lets you enter the properties of the variable and choose the type. In the Variable Properties group, you enter the name of the variable in the Name text box. In the Group With drop-down list, you select a category under which your formula will appear in the Variables list. You can also create a new category. The Value Or Expression box is where you put your formula; it can also be a single value, such as a number or a coordinate. At the bottom is a space to enter a description for the variable. This description will appear in the Variables group’s detail box at the bottom of QuickCalc.

At the top, in the Variable Type group, you see two options: Constant and Function. If you choose Function, your variable will behave as it normally does when you enter it in the input box. If you choose Constant and your variable is a formula, your variable will be executed when you close the Variable Definition dialog box. The resulting value will become the value for the variable.

To edit an existing variable, highlight it in the Variables group list, and then click the Edit Variable button to open the Variable Definition dialog box.

Guidelines for Working with QuickCalc

You may notice some patterns in the way expressions are formatted for the calculator. Here are some guidelines to remember:

  • Coordinates are enclosed in square brackets.
  • Nested or grouped expressions are enclosed in parentheses.
  • Operators are placed between values, as in simple math equations.
  • Object snaps can be used in place of coordinate values.

Table 15-5 lists all the operators and functions available in QuickCalc. You may want to experiment with these functions on your own. You can enter many of these operators using the keys on the number pad or in the scientific group.

Table 15-5: The QuickCalc functions

Operator/functionWhat it doesExample
+ or –Adds or subtracts numbers or vectors2 – 1 = 1[a,b,c] + [x,y,z] = [a+x, b+y, c+z]
* or /Multiplies or divides numbers or vectors2 * 4.2 = 8.4a*[x,y,z] = [a*x, a*y, a*z]
^Returns the exponent of a number3^2 = 9
SinReturns the sine of an anglesin (45) = 0.707107
CosReturns the cosine of an anglecos (30) = 0.866025
TangReturns the tangent of an angletang (30) = 0.57735
AsinReturns the arcsine of a real numberasin (0.707107) = 45.0
AcosReturns the arccosine of a real numberacos (0.866025) = 30.0
AtanReturns the arctangent of a real numberatan (0.57735) = 30.0
LnReturns the natural logln (2) = 0.693147
LogReturns the base-10 loglog (2) = 0.30103
ExpReturns the natural exponentexp (2) = 7.38906
exp10Returns the base-10 exponentexp10 (2) = 100
SqrSquares a numbersqr (9) = 81.0
AbsReturns the absolute valueabs (–3.4) = 3.4
RndRounds to the nearest integerround (3.6) = 4
trunkDrops the decimal portion of a real numbertrunc (3.6) = 3
r2dConverts radians to degreesr2d (1.5708) = 90.0002
d2rConverts degrees to radiansd2r (90) = 1.5708
PiProvides the constant pi3.14159

QuickCalc is capable of much more than the typical uses you’ve seen here. A description of its full capabilities extends beyond the scope of this text. However, the processes described in these sections will be helpful as you use AutoCAD. If you want to know more about QuickCalc, consult the AutoCAD Help User Documentation (enter QuickCalc in the InfoCenter input box).


Singling Out Proximate Objects
You’ll sometimes need to select an object that overlaps or is very close to another object. Often in this situation, you end up selecting the wrong object. To select the exact object you want, you can use the Selection Cycling tool and the Draworder command.
Selection Cycling lets you cycle through objects that overlap until you select the one you want. To use this feature, hover over the overlapping objects so that one of them is highlighted; then hold down the Shift key and press the spacebar. With each press of the spacebar, a different overlapping object will be highlighted. When the object you want to select is highlighted, click it.
Another way to gain access to an overlapped object is to use the Draworder command. You can select the overlapping object and then choose Send To Back from the Draworder flyout in the Home tab’s expanded Modify panel.
c15uf006.tif
One reason you would want to select an overlapping object is simply to delete a redundant line. AutoCAD offers the Delete Duplicate Object tool, which can be found in the Home tab’s expanded Modify panel.
c15uf007.tif
This tool is designed to help you easily remove overlapping objects that are not easily seen. To use it, click the Delete Duplicate Object tool or type Overkill↵. At the Select objects: prompt, select the objects that are overlapping. A selection window can be used to select an area. Press ↵ and the Delete Duplicate Objects dialog box appears.
c15uf008.tif
This dialog box gives you control over the criteria AutoCAD uses to determine whether or not an object should be deleted. Make any changes necessary to the dialog box, and then click OK to remove duplicate overlapping objects.

The Bottom Line

Use external references (Xrefs). You’ve seen how you can use Xrefs to quickly build variations of a floor plan that contain repetitive elements. This isn’t necessarily the only way to use Xrefs, but the basic idea of how to use Xrefs is presented in the early exercises.
Master It Try putting together another floor plan that contains nothing but the Unit2 plan.
Manage layers. Once you start to edit complex drawings, you’ll find that you’ll want to save the On/Off or Freeze/Thaw layer states so you can access parts of a drawing more easily. The Layer States Manager offers the ability to save as many layer conditions as you may need in the course of a project.
Master It What part of the Layer States Manager dialog box lets you control the layer properties that are affected by a saved layer state?
Use advanced tools: Filter and Quick Select. The Filter and Quick Select tools are great for isolating objects in a crowded drawing. You can select objects by their color or layer assignment. You can select all instances of a specific block.
Master It True or false: The Quick Select tool lets you select a set of objects to limit your selections.
Use the QuickCalc calculator. The QuickCalc calculator offers many standard calculator tools plus a few that you may not see in other calculators.
Master It Name a few of the more unusual features offered by the QuickCalc calculator.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.182.73