Chapter 4. Organizing Objects with Blocks and Groups

Drawing the tub, toilet, and sink in Chapter 3 may have taken what seemed to you an inordinate amount of time. As you continue to use AutoCAD, however, you'll learn to draw objects more quickly. You'll also need to draw fewer of them because you can save drawings as symbols and then use those symbols like rubber stamps, duplicating drawings instantaneously wherever they're needed. This saves a lot of time when you're composing drawings.

To make effective use of AutoCAD, begin a symbol library of drawings you use frequently. A mechanical designer might have a library of symbols for fasteners, cams, valves, or other parts used in their application. An electrical engineer might have a symbol library of capacitors, resistors, switches, and the like. A circuit designer will have yet another unique set of frequently used symbols.

In Chapter 3, you drew three objects—a bathtub, a toilet, and a sink—that architects often use. In this chapter, you'll see how to create symbols from those drawings.

In this chapter, you'll learn to do the following:

  • Create and insert a symbol

  • Modify a block

  • Understand the annotation scale

  • Group objects

Creating a Symbol

To save a drawing as a symbol, you use the Block tool. In word processors, the term block refers to a group of words or sentences selected for moving, saving, or deleting. You can copy a block of text elsewhere within the same file, to other files, or to a separate location on a server or USB storage device for future use. AutoCAD uses blocks in a similar fashion. In a file, you can turn parts of your drawing into blocks that can be saved and recalled at any time. You can also use entire existing files as blocks.

You'll start by opening the file you worked on in the previous chapter and selecting the objects that will become a block:

  1. Start AutoCAD, and open the existing Bath file. Use the one you created in Chapter 3, or open the 04-bath.dwg sample file from this book's companion DVD. Metric users can use the 04-bath-metric.dwg file. The drawing appears just as you left it in the last session.

  2. Creating a Symbol
    The Block Definition dialog box

    Figure 4.1. The Block Definition dialog box

  3. In the Name text box, type Toilet.

  4. In the Base Point group, click the Pick Point button. This option enables you to select a base point for the block by using your cursor. (The insertion base point of a block is a point of reference on the block that is used like a grip.) When you've selected this option, the Block Definition dialog box temporarily closes.

    Notice that the Block Definition dialog box gives you the option to specify the X, Y, and Z coordinates for the base point instead of selecting a point.

  5. Using the Midpoint osnap, pick the midpoint of the back of the toilet as the base point. Remember that you learned how to set up Running Osnaps in Chapter 3; all you need to do is point to the midpoint of a line to display the Midpoint Osnap marker and then left-click your mouse.

    The Block Definition dialog box

    After you've selected a point, the Block Definition dialog box reappears. Notice that the X, Y, and Z values in the Base Point group now display the coordinates of the point you picked. For two-dimensional drawings, the Z coordinate should remain at 0.

    Next, you need to select the objects you want as part of the block.

  6. The Block Definition dialog box

    Make sure you use the Select Objects option in the Block Definition dialog box to select the objects you want to turn into a block. AutoCAD lets you create a block that contains no objects. If you try to proceed without selecting objects, you'll get a warning message. This can cause confusion and frustration, even for an experienced user.

  7. Press

    The Block Definition dialog box
  8. Select Inches from the Block Unit drop-down list. Metric users should select Centimeters.

  9. Click the Description list box, and enter Standard Toilet.

  10. Make sure the Retain radio button in the Objects group is selected, and then click OK. The toilet drawing is now a block with the name Toilet.

  11. Repeat the blocking process for the tub, but this time use the upper-left corner of the tub as the insertion base point and give the block the name Tub. Enter Standard Tub for the description.

You can press

The Block Definition dialog box

When you turn an object into a block, it's stored in the drawing file, ready to be recalled at any time. The block remains part of the drawing file even when you end the editing session. When you open the file again, the block is available for your use. In addition, you can access blocks from other drawings by using the AutoCAD DesignCenter and the Tool palettes. You'll learn more about the DesignCenter and the Tool palettes in Chapter 28.

A block acts like a single object, even though it's really made up of several objects. One unique characteristic of a block is that when you modify it, all instances of it are updated to reflect the modifications. For example, if you insert several copies of the toilet into a drawing and then later decide the toilet needs to be a different shape, you can edit the Toilet block and all the other copies of the toilet are updated automatically.

You can modify a block in a number of ways after it has been created. In this chapter, you'll learn how to make simple changes to individual blocks by modifying the block's properties. For more detailed changes, you'll learn how to redefine a block after it has been created. Later, in Chapter 18, you'll learn how to use the Block Editor to make changes to blocks.

Understanding the Block Definition Dialog Box

The Block Definition dialog box offers several options that can help make using blocks easier. If you're interested in these options, take a moment to review the Block Definition dialog box as you read the descriptions. If you prefer, you can continue with the tutorial and come back to this section later.

You've already seen how the Name option lets you enter a name for your block. AutoCAD doesn't let you complete the block creation until you enter a name.

You've also seen how to select a base point for your block. The base point is like the grip of the block: It's the reference point you use when you insert the block back into the drawing. In the exercise, you used the Pick Point option to indicate a base point, but you also have the option to enter X, Y, and Z coordinates just below the Pick Point option. In most cases, however, you'll want to use the Pick Point option to indicate a base point that is on or near the set of objects you're converting to a block.

The Objects group of the Block Definition dialog box lets you select the objects that make up the block. You use the Select Objects button to visually select the objects you want to include in the block you're creating. The QuickSelect button to the right of the Select Objects button lets you filter out objects based on their properties. You'll learn more about QuickSelect in Chapter 15. Once you select a set of objects for your block, you'll see a thumbnail preview of the block's contents in the upper-right corner of the Block Definition dialog box.

Other options in the Objects group and Settings group let you specify what to do with the objects you're selecting for your block. Table 4.1 shows a list of those other options and what they mean.

Table 4.1. The Block Definition Dialog Box Options

Option

Purpose

Objects Group

 

Retain

Keeps the objects you select for your block as they are or unchanged.

Convert To Block

Converts the objects you select into the block you're defining. The block then acts like a single object after you've completed the Block command.

Delete

Deletes the objects you selected for your block. You may also notice that a warning message appears at the bottom of the Objects group. This warning appears if you haven't selected objects for the block. After you've selected objects, the warning changes to tell you how many objects you've selected.

Behavior Group

 

Annotative

Turns on the Annotative scale feature for blocks. This feature lets you use a single block for different scale views of a drawing. With this feature turned on, AutoCAD can be set to adjust the size of the block to the appropriate scale for the drawing.

Match Block Orientation To Layout

With the Annotative option turned on, this option is available. This option causes a block to appear always in its normal orientation regardless of the orientation of the layout view.

Scale Uniformly

By default, blocks can have a different X, Y, or Z scale. This means they can be stretched in any of the axes. You can lock the X, Y, and Z scale of the block by selecting this option. That way, the block will always be scaled uniformly and can't be stretched in one axis.

Allow Exploding

By default, blocks can be exploded or reduced to their component objects. You can lock a block so that it can't be exploded by turning off this option. You can always turn on this option later through the Properties palette if you decide that you need to explode a block.

Settings Group

 

Block Unit

Lets you determine how the object is to be scaled when it's inserted into the drawing using the DesignCenter feature discussed in Chapter 29. By default, this value is the same as the current drawing's insert value.

Hyperlink

Lets you assign a hyperlink to a block. This option opens the Insert Hyperlink dialog box, where you can select a location or file for the hyperlink.

Description and Open In Block Editor

 

Description

Lets you include a brief description or keyword for the block. This option is helpful when you need to find a specific block in a set of drawings. You'll learn more about searching for blocks later in this chapter and in Chapter 29.

Open In Block Editor

If you turn on this option, the block is created and then opened in the Block Editor described in Chapter 18.

Inserting a Symbol

You can recall the Tub and Toilet blocks at any time, as many times as you want. In this section, you'll draw the interior walls of the bathroom first, and then you'll insert the tub and toilet. Follow these steps to draw the walls:

  1. Inserting a Symbol
  2. Draw a rectangle 7′-6″ × 5′. Metric users should draw a 228 cm × 152 cm rectangle. Orient the rectangle so the long sides go from left to right and the lower-left corner is at coordinate 1′-10″,1′-10″ (or coordinate 56.0000,56.0000 for metric users).

If you use the Rectangle tool to draw the rectangle, make sure you explode it by using the Explode command. This is important for later exercises. (See the section "Unblocking and Redefining a Block" later in this chapter if you aren't familiar with the Explode command.) Your drawing should look like Figure 4.2.

The Insert Block tool is also on the Insert toolbar, which you can open by right-clicking the Quick Access toolbar and selecting Toolbars

Inserting a Symbol
The interior walls of the bathroom

Figure 4.2. The interior walls of the bathroom

Now you're ready to place your blocks. Start by placing the tub in the drawing:

  1. The interior walls of the bathroom
    The Insert dialog box

    Figure 4.3. The Insert dialog box

  2. Click the Name drop-down list to display a list of the available blocks in the current drawing.

    The Insert dialog box
  3. Click the block name Tub.

  4. In the Insertion Point group and Rotation group, click the Specify On-Screen check box. With this option turned on in the Insertion Point group, you're asked to specify an insertion point using your cursor. The Specify On-Screen option in the Rotation group lets you specify the rotation angle of the block graphically as you insert it.

  5. Click OK and you will see a preview image of the tub attached to the cursor. The upper-left corner you picked for the tub's base point is now on the cursor intersection.

  6. At the Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]: prompt, pick the upper-left intersection of the room as your insertion point.

  7. At the Specify rotation angle <0>: prompt, notice that you can rotate the block. This lets you visually specify a rotation angle for the block. You won't use this feature at this time, so press

    The Insert dialog box
The bathroom, first with the tub and then with the toilet inserted

Figure 4.4. The bathroom, first with the tub and then with the toilet inserted

You've got the tub in place. Now place the Toilet block in the drawing:

  1. Open the Insert dialog box again, but this time select Toilet in the Name drop-down list.

  2. Clear the Specify On-Screen check box in the Rotation group.

  3. Place the toilet at the midpoint of the line along the top of the rectangle representing the bathroom wall as shown in the bottom image in Figure 4.4. Notice that after you select the insertion point, the toilet appears in the drawing; you aren't prompted for a rotation angle for the block.

Scaling and Rotating Blocks

In step 7 in the previous section, you can see the tub rotate as you move the cursor. You can pick a point to fix the block in place, or you can enter a rotation value. This is the result of selecting the Specify On-Screen option in the Insert dialog box. You may find that you want the Rotation group's Specify On-Screen option turned on most of the time to enable you to adjust the rotation angle of the block while you're placing it in the drawing.

The other options in the Insert dialog box that you didn't use are the Scale group options. These options let you scale the block to a different size. You can scale the block uniformly, or you can distort the block by individually changing its X, Y, or Z scale factor. With the Specify On-Screen option unchecked, you can enter specific values in the X, Y, and Z text boxes to stretch the block in any direction. If you turn on the Specify On-Screen option, you can visually adjust the X, Y, and Z scale factors in real time. Although these options aren't used often, they can be useful in special situations when a block needs to be stretched one way or another to fit in a drawing.

You aren't limited to scaling or rotating a block when it's being inserted into a drawing. You can always use the Scale or Rotate tools or modify an inserted block's properties to stretch it in one direction or another. This exercise shows you how this is done:

  1. Click the Toilet block to select it.

  2. Right-click, and choose Properties from the shortcut menu to open the Properties palette. Take a moment to study the Properties palette. Toward the bottom, under the Geometry heading, you see a set of labels that show Position and Scale. These labels may appear as Pos and Sca if the width of the palette has been adjusted to be too narrow to show the entire label. Remember that you can click and drag the left or right edge of the palette to change its width. You can also click and drag the border between the columns in the palette.

  3. If the first item label under the Geometry heading isn't visible, place the cursor on the label. A tool tip displays the full wording of the item, which is Position X.

  4. Move the cursor down one line to display the tool tip for Position Y. This shows how you can view the label even if it isn't fully visible.

  5. Continue to move the cursor down to the Scale X label. The tool tip displays the full title.

  6. Let's try making some changes to the toilet properties. Double-click the Scale X value in the column just to the right of the Scale X label.

  7. Enter 1.5

    Scaling and Rotating Blocks
    Scaling and Rotating Blocks
  8. You don't really want to change the width of the toilet, so click the Undo tool in the Quick Access toolbar or enter U

    Scaling and Rotating Blocks
  9. Close the Properties palette by clicking the X in the upper-right corner.

If a block is created with the Scale Uniformly option turned on in the Block Definition dialog box, you can't scale the block in just one axis as shown in the previous exercise. You can only scale the block uniformly in all axes.

You've just seen how you can modify the properties of a block by using the Properties palette. In the exercise, you changed the X scale of the Toilet block, but you could have just as easily changed the Y value. You may have noticed other properties available in the Properties palette. You'll learn more about those properties as you work through this chapter.

You've seen how you can turn a drawing into a symbol, known as a block in AutoCAD. Now let's see how you can use an existing drawing file as a block.

Using an Existing Drawing as a Symbol

You need a door into the bathroom. Because you've already drawn a door and saved it as a file, you can bring the door into this drawing file and use it as a block:

  1. Using an Existing Drawing as a Symbol
  2. In the Insert dialog box, click the Browse button to open the Select Drawing File dialog box.

  3. This is a standard Windows file browser dialog box. Locate the Door file and double-click it. If you didn't create a door file, you can use the door file from the Chapter 04 project files on this book's companion DVD.

    You can also browse your hard disk by looking at thumbnail views of the drawing files in a folder.

  4. When you return to the Insert dialog box, make sure the Specify On-Screen options for the Insertion Point, Scale, and Rotation groups are checked, and then click OK. As you move the cursor around, notice that the door appears above and to the right of the cursor intersection, as in Figure 4.5.

    The door drawing being inserted in the Bath file

    Figure 4.5. The door drawing being inserted in the Bath file

  5. At this point, the door looks too small for this bathroom. This is because you drew it 3 units long, which translates to 3″. Metric users drew the door 9 cm long. Pick a point near coordinates 7′-2″,2′-4″ so that the door is placed in the lower-right corner of the room. Metric users should use the coordinate 210,70.

  6. If you take the default setting for the X scale of the inserted block, the door will remain 3″ long, or 9 cm long for metric users. However, as mentioned earlier, you can specify a smaller or larger size for an inserted object. In this case, you want a 3′ door. Metric users want a 90 cm door. To get that from a 3″ door, you need an X scale factor of 12, or 10 for metric users. (You may want to review "Understanding Scale Factors" in Chapter 3 to see how this is determined.) At the Enter X scale factor, specify opposite corner, or [Corner/XYZ] <1>: prompt, enter 12

    The door drawing being inserted in the Bath file
  7. Press

    The door drawing being inserted in the Bath file

The Command prompt appears, but nothing seems to happen to the drawing. This is because when you enlarged the door, you also enlarged the distance between the base point and the object. This brings up another issue to be aware of when you're considering using drawings as symbols: All drawings have base points. The default base point is the absolute coordinate 0,0, otherwise known as the origin, which is located in the lower-left corner of any new drawing. When you drew the door in Chapter 2, you didn't specify the base point. When you try to bring the door into this drawing, AutoCAD uses the origin of the door drawing as its base point (see Figure 4.6).

By default, a drawing's origin is also its insertion point. You can change a drawing's insertion point by using the Base command.

Figure 4.6. By default, a drawing's origin is also its insertion point. You can change a drawing's insertion point by using the Base command.

Because the door appears outside the bathroom, you must first choose All from the Zoom flyout on the View tab's Navigate panel to show more of the drawing and then use the Move command on the Modify panel to move the door to the right-side wall of the bathroom. Let's do this now:

  1. Click All from the Zoom flyout on the View tab's Navigate panel to display the area set by the limits of your drawing (from Format

    By default, a drawing's origin is also its insertion point. You can change a drawing's insertion point by using the Base command.
    The enlarged door

    Figure 4.7. The enlarged door

  2. The enlarged door
  3. To pick the door you just inserted, at the Select objects: prompt, click a point anywhere on the door, and press

    The enlarged door
  4. At the Specify base point or [Displacement] <Displacement>: prompt, turn on Running Osnaps, and pick the lower-left corner of the door. Remember that pressing the F3 key or clicking Osnap in the status bar toggles Running Osnaps on or off.

  5. At the Specify second point or <use first point as displacement>: prompt, use the Nearest Osnap override, and position the door so that your drawing looks like Figure 4.8.

    The door on the right-side wall of the bathroom

    Figure 4.8. The door on the right-side wall of the bathroom

Because the door is an object that you'll use often, it should be a common size so you don't have to specify an odd value every time you insert it. It would also be helpful if the door's insertion base point were in a more convenient location; that is, a location that would let you place the door accurately within a wall opening. Next you'll modify the Door block to better suit your needs.

Modifying a Block

You can modify a block in three ways. One way is to completely redefine it. In earlier versions of AutoCAD, this was the only way to make changes to a block. A second way is to use the Block Editor. A third way is to use the Edit Reference tool on the Insert tab's Reference panel. The Edit Reference tool is also known as the Refedit command.

In the following sections, you'll learn how to redefine a block by making changes to the door symbol. Later, in Chapter 17, you'll see how the Block Editor lets you add adjustability to blocks, and in Chapter 7 you'll learn about the Reference Edit tool.

Double-clicking most objects displays the Properties palette. Double-clicking a block opens the Edit Block Definition dialog box, which gives you another way to edit blocks. You'll learn more about the Edit Block Definition dialog box in Chapter 17.

Unblocking and Redefining a Block

One way to modify a block is to break it down into its components, edit them, and then turn them back into a block. This is called redefining a block. If you redefine a block that has been inserted in a drawing, each occurrence of that block in the current file changes to reflect the new block definition. You can use this block-redefinition feature to make rapid changes to a design.

To separate a block into its components, use the Explode command:

  1. Unblocking and Redefining a Block
  2. Click the door, and press

    Unblocking and Redefining a Block

You can simultaneously insert and explode a block by clicking the Explode check box in the lower-left corner of the Insert dialog box.

Now you can edit the individual objects that make up the door, if you desire. In this case, you want to change only the door's insertion point because you've already made it a more convenient size. You'll turn the door back into a block, this time using the door's lower-left corner for its insertion base point:

  1. Unblocking and Redefining a Block
  2. In the Block Definition dialog box, select Door from the Name drop-down list.

  3. Click the Pick Point button, and pick the lower-left corner of the door.

  4. Click the Select Objects button, and select the components of the door. Press

    Unblocking and Redefining a Block
  5. Select the Convert To Block option in the Objects group to automatically convert the selected objects in the drawing into a block.

  6. Select Inches from the Block Unit drop-down list, and then enter Standard door in the Description box.

  7. Click OK. You see a warning message that reads, "Door is already defined. Do you want to redefine it?" You don't want to redefine an existing block accidentally. In this case, you know you want to redefine the door, so click the Yes button to proceed.

The Select Objects and Pick Point buttons appear in other dialog boxes. Make note of their appearance, and remember that when you select them, the dialog box temporarily closes to let you select points or objects and otherwise perform operations that require a clear view of the drawing area.

In step 7, you received a warning message that you were about to redefine the existing Door block. But originally, you inserted the door as a file, not as a block. Whenever you insert a drawing file by using the Insert Block tool, the inserted drawing automatically becomes a block in the current drawing. When you redefine a block, however, you don't affect the drawing file you imported. AutoCAD changes only the block in the current file.

You've just redefined the door block. Now place the door in the wall of the room:

  1. Choose Erase from the Modify Ribbon panel, and then click the door. Notice that the entire door is one object instead of individual lines and an arc. Had you not selected the Convert To Block option in step 5 of the previous exercise, the components of the block would have remained individual objects.

  2. Unblocking and Redefining a Block
  3. Use the Grips feature to mirror the door, using the wall as the mirror axis so that the door is inside the room. Your drawing will look like Figure 4.9.

The bathroom, first with the tub and then with the toilet inserted

Figure 4.9. The bathroom, first with the tub and then with the toilet inserted

To mirror an object using grips, first be sure the Grips feature is on. (It's usually on by default.) Select the objects to mirror, click a grip, and right-click. Select Mirror from the shortcut menu; then, indicate a mirror axis with the cursor.

Next you'll see how you can update an external file with a redefined block.

Saving a Block as a Drawing File

You've seen that, with little effort, you can create a symbol and place it anywhere in a file. Suppose you want to use this symbol in other files. When you create a block by using the Block command, the block exists in the current file only until you specifically instruct AutoCAD to save it as a drawing file on disk. When you have an existing drawing that has been brought in and modified, such as the door, the drawing file on disk associated with that door isn't automatically updated. To update the Door file, you must take an extra step and use the Export option on the Application menu. Let's see how this works.

Start by turning the Tub and Toilet blocks into individual files on disk:

  1. From the Application menu, choose Export

    Saving a Block as a Drawing File
  2. Open the Files Of Type drop-down list, and select Block (*.dwg).

If you prefer, you can skip step 2 and instead, in step 3, enter the full filename including the .dwg extension, as in Tub.dwg.

  1. Double-click the File Name text box and enter Tub.

  2. Click the Save button to close the Export Data dialog box.

  3. At the [= (block=output file)/* (whole drawing)] <define new drawing>: prompt, enter the name of the block you want to save to disk as the tub file—in this case, Tub

    Saving a Block as a Drawing File

The Tub block is now saved as a file.

  1. Repeat steps 1 through 5 for the Toilet block. Give the file the same name as the block.

Replacing Existing Files with Blocks

The Wblock command does the same thing as choosing Export

Replacing Existing Files with Blocks
  1. Issue the Wblock command by typing Wblock

    Replacing Existing Files with Blocks
  2. In the Source group, click the Block radio button.

    The Write Block dialog box

    Figure 4.10. The Write Block dialog box

  3. Select Door from the drop-down list. You can keep the old name or enter a different name if you prefer.

  4. In this case, you want to update the door you drew in Chapter 2. Click the Browse button in the Destination group.

    The Write Block dialog box
  5. Locate and select the original door.dwg file that you inserted earlier.

  6. Click OK. A warning message tells you that the Door.dwg file already exists. Go ahead and click Yes to confirm that you want to overwrite the old door drawing with the new door definition.

In this exercise, you typed the Wblock command at the Command prompt instead of choosing Export

The Write Block dialog box

Understanding the Write Block Dialog Box Options

The Write Block dialog box offers a way to save parts of your current drawing as a file. As you can see from the dialog box shown in the previous exercise, you have several options.

In that exercise, you used the Block option of the Source group to select an existing block as the source object to be exported. You can also export a set of objects by choosing the Objects option. If you choose this option, the Base Point and Objects groups become available. These options work the same way as their counterparts in the Block Definition dialog box, which you saw earlier when you created the Tub and Toilet blocks.

The other option in the Source group, Entire Drawing, lets you export the whole drawing to its own file. This may seem to duplicate the Save As option in the Application menu, but saving the entire drawing from the Write Block dialog box performs some additional operations, such as stripping out unused blocks or other unused components. This has the effect of reducing file size. You'll learn more about this feature later in this chapter.

Other Uses for Blocks

So far you've used the Block tool to create symbols, and you've used the Export and Wblock commands to save those symbols to disk. As you can see, you can create symbols and save them at any time while you're drawing. You've made the tub and toilet symbols into drawing files that you can see when you check the contents of your current folder.

However, creating symbols isn't the only use for the Block, Export, and Wblock commands. You can use them in any situation that requires grouping objects (though you may prefer to use the more flexible Object Grouping dialog box discussed later in this chapter). You can also use blocks to stretch a set of objects along one axis by using the Properties palette. Export and Wblock also enable you to save a part of a drawing to disk. You'll see instances of these other uses of the Block, Export, and Wblock commands throughout the book.

Block, Export, and Wblock are extremely versatile commands and if used judiciously, can boost your productivity and simplify your work. If you aren't careful, however, you can get carried away and create more blocks than you can track. Planning your drawings helps you determine which elements will work best as blocks and recognize situations in which other methods of organization are more suitable.

Another way of using symbols is to use AutoCAD's external reference capabilities. External reference files, known as Xrefs, are files inserted into a drawing in a way similar to how blocks are inserted. The difference is that Xrefs don't become part of the drawing's database. Instead, they're loaded along with the current file at startup time. It's as if AutoCAD opens several drawings at once: the main file you specify when you start AutoCAD and the Xrefs associated with the main file.

By keeping the Xrefs independent from the current file, you make sure that any changes made to the Xrefs automatically appear in the current file. You don't have to update each inserted copy of an Xref. For example, if you use the Attach tool on the Insert tab's Reference panel (discussed in Chapter 7) to insert the tub drawing and later you make changes to the tub, the next time you open the Bath file, you'll see the new version of the tub. Or if you have both the tub and the referencing drawing open and you change the tub, AutoCAD will notify you that a change has been made to an external reference. You can then update the tub Xref using the External Reference palette.

Xrefs are especially useful in workgroup environments, where several people are working on the same project. One person might be updating several files that have been inserted into a variety of other files. Before Xrefs were available, everyone in the workgroup had to be notified of the changes and had to update all the affected blocks in all the drawings that contained them. With Xrefs, the updating is automatic. Many other features are unique to these files. They're discussed in more detail in Chapters 7 and 12.

Understanding the Annotation Scale

One common use for AutoCAD's block feature is creating reference symbols. These are symbols that refer the viewer to other drawings or views in a set of drawings. An example would be a building-section symbol on a floor plan that directs the viewer to look at a location on another sheet to see a cross-section view of a building. Such a symbol is typically a circle with two numbers: one is the drawing sheet number and the other is the view number on the sheet (examples appear a little later, in Figure 4.15).

In the past, AutoCAD users had to insert a reference symbol block multiple times to accommodate different scales of the same view. For example, the same floor plan might be used for a ¼″ = 1′-1″ scale view and a ⅛″ = 1′-0″ view. An elevation symbol block that works for the ¼″ = 1′-1″ scale view would be too small for the ⅛″ = 1′-0″ view, so two copies of the same block were inserted, one for each scale. The user then had to place the two blocks on different layers to control their visibility. In addition, if sheet numbers changed, the user had to make sure every copy of the elevation symbol block was updated to reflect the change.

The annotation scale feature does away with this need for redundancy. You can now use a single instance of a block even if it must be displayed in different scale views. To do this, you must take some additional steps when creating and inserting the block. Here's how you do it:

  1. Draw your symbol at the size it should appear when plotted. For example, if the symbol is supposed to be a ¼″ circle on a printed sheet, draw the symbol as a ¼″ circle.

  2. Open the Block Definition dialog box by choosing the Create tool from the Block Ribbon panel.

  3. Turn on the Annotative option in the Behavior section of the Block Definition dialog box. You can also turn on the Match Block Orientation To Layout option if you want the symbol to appear always in a vertical orientation (see Figure 4.11).

    The Block Definition dialog box with the Annotative option turned on

    Figure 4.11. The Block Definition dialog box with the Annotative option turned on

  4. Select the objects that make up the block, and indicate an insertion point as usual.

  5. Click OK.

After you've followed these steps, you need to apply an annotation scale to the newly created block:

  1. Click the new block to select it.

  2. Right-click and choose Annotative Object Scale

    The Block Definition dialog box with the Annotative option turned on
    The Annotation Object Scale dialog box

    Figure 4.12. The Annotation Object Scale dialog box

  3. Click the Add button. The Add Scales To Object dialog box appears (see Figure 4.13).

    The Add Scales To Object dialog box

    Figure 4.13. The Add Scales To Object dialog box

  4. Select from the list the scale you'll be using with this block. You can Ctrl+click to select multiple scales. When you're finished selecting scales, click OK. The selected scales appear in the Annotation Object Scale dialog box.

  5. Click OK to close the Annotation Object Scale dialog box.

At this point, the block is ready to be used in multiple scale views. You need only to select a scale from the Model view's Annotation Scale drop-down list or the Layout view's VP (Viewport) Scale drop-down list, which are both in the lower-right corner of the AutoCAD window (see Figure 4.14).

The Annotation Scale and the Layout view's VP Scale drop-down lists

Figure 4.14. The Annotation Scale and the Layout view's VP Scale drop-down lists

The Annotation Scale drop-down list appears in Model view, and the VP Scale drop-down list appears in Layout view and when a viewport is selected. (See Chapter 16 for more about layouts and viewports.) In Layout view, you can set the VP Scale value for each individual viewport so the same block can appear at the appropriate size for different scale viewports (see Figure 4.15).

Note that if you want to use several copies of a block that is using multiple annotation scales, you should insert the block and assign the additional annotation scales and then make copies of the block. If you insert a new instance of the block, the block acquires only the annotation scale that is current for the drawing. You'll have to assign additional annotation scales to each new insertion of the block.

A single block is used to create building section symbols of different sizes in this Layout view. Both views show the same floor plan displayed at different scales.

Figure 4.15. A single block is used to create building section symbols of different sizes in this Layout view. Both views show the same floor plan displayed at different scales.

If you're uncertain whether an annotation scale has been assigned to a block, you can click the block and you'll see the different scale versions of the block as ghosted images. Also, if you hover over a block, a triangular symbol appears next to the cursor for blocks that have been assigned annotation scales.

A single block is used to create building section symbols of different sizes in this Layout view. Both views show the same floor plan displayed at different scales.

If you need to change the position of a block for a particular layout viewport scale, go to Model view, select the appropriate scale from the Annotation Scale drop-down list, and then adjust the position of the block.

Grouping Objects

Grouping Objects

For example, consider a space planner who has to place workstations on a floor plan. Although each workstation is basically the same, some slight variations in each station could make the use of blocks unwieldy. For instance, one workstation might need a different configuration to accommodate special equipment, and another workstation might need to be slightly larger than the standard size. You would need to create a block for one workstation and then, for each variation, explode the block, edit it, and create a new block. A better way is to draw a prototype workstation and turn it into a group. You can copy the group into position and then edit it for each individual situation without losing its identity as a group. AutoCAD LT offers a different method for grouping objects. If you're using LT, skip this exercise and continue with the following section, "Grouping Objects for LT Users."

The following exercise demonstrates how grouping works:

  1. Save the Bath file, and then open the drawing Office1.dwg from the sample files from this book's companion DVD. Metric users should open Office1-metric.dwg.

  2. Use the Zoom command to enlarge just the view of the workstation, as shown in the first image in Figure 4.16.

    A workstation in an office plan

    Figure 4.16. A workstation in an office plan

  3. Type G

    A workstation in an office plan
    Object Grouping dialog box

    Figure 4.17. Object Grouping dialog box

  4. Type Station1. As you type, your entry appears in the Group Name text box.

  5. Click New in the Create Group group, about midway in the dialog box. The Object Grouping dialog box temporarily closes to let you select objects for your new group.

  6. At the Select objects: prompt, window the entire workstation in the lower-left corner of the plan, and press

    Object Grouping dialog box
  7. Click OK. You've just created a group.

Now, whenever you want to select the workstation, you can click any part of it to select the entire group. At the same time, you can still modify individual parts of the group—the desk, partition, and so on—without losing the grouping of objects.

Grouping Objects for LT Users

LT users have to use a slightly different method to create a group. If you're using AutoCAD 2010 LT, do the following:

  1. Grouping Objects for LT Users
  2. Use the Zoom command to enlarge just the view of the workstation, as shown in the first image in Figure 4.16.

  3. Type G

    Grouping Objects for LT Users
  4. Move the dialog box so that you have a clear view of the workstation; then, use a selection window to select all the objects of the workstation. You can also click the individual objects of the workstation to make the selection.

  5. In the Group Manager dialog box, click the Create Group button. A new listing appears in the Group Manager list box.

    Grouping Objects for LT Users
  6. Type Station1

    Grouping Objects for LT Users
  7. Close the Group Manager dialog box.

Now, whenever you want to select the workstation, you can click any part of it to select the entire group. At the same time, you can still modify individual parts of the group—the desk, partition, and so on—without losing the grouping of objects.

Modifying Members of a Group

Next you'll make copies of the original group and modify the copies. Figure 4.18 is a sketch of the proposed layout that uses the new workstations. Look carefully and you'll see that some of the workstations in the sketch are missing a few of the standard components that exist in the Station1 group. One pair of stations has a partition removed; another station has no desk.

A sketch of the new office layout

Figure 4.18. A sketch of the new office layout

The exercises in this section show you how to complete your drawing to reflect the design requirements of the sketch.

Start by making a copy of the workstation:

  1. A sketch of the new office layout
  2. Press

    A sketch of the new office layout
  3. At the Specify base point or [Displacement/mOde] <Displacement>: prompt, enter @

    A sketch of the new office layout

You can also use the Direct Distance method by typing @

A sketch of the new office layout
  1. Issue the Copy command again, but this time click the copy of the workstation you just created. Notice that it too is a group.

  2. Copy this workstation 8′-2″ (249 cm for the metric users) vertically, just as you did the original workstation. Press

    A sketch of the new office layout

Next you'll use grips to mirror the first workstation copy:

  1. Click the middle workstation to highlight it, and notice that grips appear for all the entities in the group.

  2. Click the grip in the middle-left side, as shown in Figure 4.19.

    Mirroring the new group by using grips

    Figure 4.19. Mirroring the new group by using grips

  3. Right-click the mouse, and choose Mirror from the shortcut menu. Notice that a temporary mirror image of the workstation follows the movement of your cursor.

  4. Turn on Ortho mode, and pick a point directly to the right of the hot grip you picked in step 2. The workstation is mirrored to a new orientation.

  5. Press the Esc key twice to clear the grip selection. Also, turn off Ortho mode.

Now that you've got the workstations laid out, you need to remove some of the partitions between the new workstations. If you had used blocks for the workstations, you would first need to explode the workstations that have partitions you want to edit. Groups, however, let you make changes without undoing their grouping.

Use these steps to remove the partitions:

  1. At the Command prompt, press Shift+Ctrl+A. You should see the <Group off> message in the command line. If you see the <Group on> message instead, press Shift+Ctrl+A until you see <Group off>. This turns off groupings so you can select and edit individual objects within a group.

  2. Using a window, erase the short partition that divides the two copies of the workstations, as shown in Figure 4.20.

    Remove the partitions between the two workstations.

    Figure 4.20. Remove the partitions between the two workstations.

  3. Press Shift+Ctrl+A again to turn groupings back on.

  4. To check your workstations, click one of them to see whether all its components are highlighted together.

Pickstyle is a system variable that controls how groups are selected. See Appendix B for more information about Pickstyle and other system variables.

Working with the Object Grouping Dialog Box

Working with the Object Grouping Dialog Box

Objects in a group aren't bound solely to that group. One object can be a member of several groups, and you can have nested groups.

The Object Grouping dialog box

Figure 4.21. The Object Grouping dialog box

AutoCAD LT users have a different set of options. See the next section, "Working with the LT Group Manager."

Table 4.2 gives a rundown of the options available in the Object Grouping dialog box.

Table 4.2. Object Grouping Dialog Box Options

Option

Purpose

Group Identification

Use these options to identify your groups with unique elements that let you remember what each group is for.

Group Name

This text box lets you create a new group by naming it first.

Description

This text box lets you include a brief description of the group.

Find Name

Click this button to find the name of a group. The Object Grouping dialog box temporarily closes so you can click a group.

Highlight

Click this button to highlight a group that has been selected from the Group Name list. This helps you locate a group in a crowded drawing.

Include Unnamed

This check box determines whether unnamed groups are included in the Group Name list. Check this box to display the names of copies of groups for processing by this dialog box.

Create Group

Here's where you control how a group is created.

New

Click this button to create a new group. The Object Grouping dialog box closes temporarily so that you can select objects for grouping. To use this button, you must have either entered a group name or selected the Unnamed check box.

Selectable

This check box lets you control whether the group you create is selectable. See the description of the Selectable button in the Change Group group later in this table.

Unnamed

This check box lets you create a new group without naming it.

Change Group

These buttons are available only when a group name is highlighted in the Group Name list at the top of the dialog box.

Remove

Click this button to remove objects from a group.

Add

Click this button to add objects to a group. While using this option, grouping is temporarily turned off to allow you to select objects from other groups.

Rename

Click this button to rename a group.

Re-Order

Click this button to change the order of objects in a group. The order refers to the order in which you selected the objects to include in the group. You can change this selection order for special purposes such as tool-path machining.

Description

Click this button to modify the description of a group.

Explode

Click this button to separate a group into its individual components.

Selectable

Click this button to turn individual groupings on and off. When a group is selectable, it can be selected only as a group. When a group isn't selectable, the individual objects in a group can be selected, but not the group.

If a group is selected, you can remove individual items from the selection with a Shift+click. In this way, you can isolate objects within a group for editing or removal without having to turn off groups temporarily.

Working with the LT Group Manager

Working with the LT Group Manager

Table 4.3. AutoCAD 2009 LT Group Manager Options

Option

Purpose

Create Group

Lets you convert a set of objects into a group. Select a set of objects, and then click Create Group.

Ungroup

Removes the grouping of an existing group. Select the group name from the list, and then select Ungroup.

Add To Group

Lets you add an object to a group. At least one group and one additional object must be selected before this option is available.

Remove From Group

Lets you remove one or more objects from a group. To isolate individual objects in a group, first select the group, and then Shift+click to remove individual objects from the selection set. After you isolate the object you want to remove, click Remove From Group.

Details

Lists detailed information about the group, such as the number of objects in the group and whether it's in Model Space or a layout. Select the group name from the group list, and then click Details.

Select Group

Lets you select a group by name. Highlight the group name in the group list, and then click Select Group.

Deselect Group

Removes a group from the current selection set. Highlight the group name in the group list, and then click Deselect Group.

Help

Opens the AutoCAD LT Help dialog box, and displays information about the Group Manager.

AutoCAD 2009 LT Group Manager Options

You've seen how you can use groups to create an office layout. You can also use groups to help you keep sets of objects temporarily together in a complex drawing. Groups can be especially useful in 3D modeling when you want to organize complex assemblies together for easy selection.

The Bottom Line

Create and insert a symbol

If you have a symbol that you use often in a drawing, you can draw it once and then turn it into an AutoCAD block. A block can be placed in a drawing multiple times in any location, like a rubber stamp. Blocks are stored in a drawing as a block definition, which can be called up at any time.

Master It

Name the dialog box used to create a block from objects in a drawing, and also name the tool to open this dialog box.

Modify a block

Once you've created a block, it isn't set in stone. One of the features of a block is that you can change the block definition and all the copies of the block are updated to the new definition.

Master It

What is the name of the tool used to "unblock" a block?

Understand the annotation scale

In some cases, you'll want to create a block that is dependent on the drawing scale. You can create a block that adjusts itself to the scale of your drawing through the annotation scale feature. When the annotation scale feature is turned on for a block, the block can be set to appear at the correct size depending on the scale of your drawing.

Master It

What setting in the Block Definition dialog box turns on the annotation scale feature, and how do you set the annotation scale of a block?

Group objects

Blocks can be used as a tool to group objects together, but blocks can be too rigid for some grouping applications. AutoCAD offers groups, which are collections of objects that are similar to blocks but aren't as rigidly defined.

Master It

How are groups different from blocks?

..................Content has been hidden....................

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