Much of the efficiency of computer drafting is derived from a feature that makes it possible to combine a collection of objects into an entity that behaves as a single object. In the Autodesk® AutoCAD® software, these collected objects are called a block. The AutoCAD tools that work specifically with blocks make it possible to do the following:
In general, objects that are best suited to becoming part of a block are the components that are repeatedly used in your drawings. In architecture and construction, examples of these components are doors, windows, and fixtures; or drawing symbols, such as a North arrow; or labels for a section cut line (examples of which are shown in Figure 7.1 in the first section of this chapter). In mechanical drawings, these can be countersunk and counter-bored holes, screws, bolts, fasteners, switches, or any other objects that you find yourself repeatedly drawing. In your cabin drawing, you'll convert the doors with swings into blocks. You'll then create a new block that you'll use to place the windows in the cabin drawing. To accomplish these tasks, you need to learn two new commands: BLOCK and INSERT.
When making a block, you create a block definition. This is an entity that is stored in the drawing file and consists of the following components:
You specify each of these in the course of using the BLOCK command. When the command is completed, the objects are designated as a single block, and the block definition is stored with the drawing file. You then insert additional copies of the block into the drawing by using the INSERT command.
ABOUT COMMANDS AND TOOLS
In earlier chapters, I told you exactly what to click or enter to launch a command. Now that you're familiar with the AutoCAD interface, I'll simply instruct you to start a command or tool. In general, I'll refer to a command by the tooltip that appears when you place the cursor on the command's icon on the Ribbon or the command as it is entered at the Type a Command: prompt.
I'll refer to tools and commands that do not have an icon on the Ribbon by their name on the associated menu, toolbar, or other interface element such as the status bar. In the rare case that the command doesn't appear in either place, I'll tell you what to enter in the command-line interface. Any command can be started by entering its name or an alias at the Type a Command: prompt, while others have keyboard shortcuts. Where applicable, I'll mention the command aliases and keyboard shortcuts.
Before you create a block, you must consider the layers on which the objects to be blocked reside. When objects on layer 0 are grouped into a block, they take on the color and linetype of the layer that is current when the block is inserted or the layer to which you move the block. Objects on other layers retain the properties of their original layers, regardless of which color or linetype has been assigned to the current layer. This is one characteristic that distinguishes layer 0 from all other layers.
The objects that compose blocks can reside on more than one layer.
While it's technically possible to create blocks on any layer of your choice, the generally accepted best practice is always to define blocks that are to be used as symbols in a drawing on layer 0. It is also recommended that the color, linetype, and lineweight of each be set to ByLayer or ByBlock. Drawing your blocks with these properties in mind does a number of things.
First and foremost, it helps ensure that, when you insert a block on a given layer, the block functions as if it were drawn on that layer. By using the ByLayer or ByBlock settings, you help avoid the confusion often experienced with colors and linetypes in blocks. This allows the display of blocks to be determined in the same context as the other linework in your drawing in the Layer Properties Manager. Consequently, changes within the Layer Properties Manager apply to blocks the same as they would to other linework in your drawing. In the coming exercises, I'll show you how to follow these best practices while converting some of the objects already in your drawing into blocks and creating some new blocks of your own.
To get started, you'll see how to create blocks from objects already in your drawing. You'll create a block for the back exterior door and call it A-DOOR-36IN to match the NCS naming convention used throughout this book. For the insertion point, you need to assign a point on or near the door that will facilitate its placement as a block in your drawing. The hinge point makes the best insertion point.
For this chapter, the Endpoint osnap should be running most of the time, and Polar Tracking should be off. Follow these steps to set up your drawing:
You're using the Freeze option for layers this time because you won't need to see the lines on the A-ROOF, A-FLOR-FIXT, and A-WALL-HEAD layers for a while. This might be a good time to consider creating another layer state.
The A-DOOR layer is now current, and the sun next to the A-WALL-HEAD layer turns into a snowflake. In addition to the A-WALL-HEAD layer, the A-FLOR-FIXT and A-ROOF layers should still be frozen from Chapter 6 (see Figure 7.2).
Now you're ready to make blocks:
Click the Create Block button found on the Insert tab Block create Definition panel.
You can also start the BLOCK command by entering B.
The Block Definition dialog box opens, where you can specify some basic parameters about your block.
Click the Pick Point button in the Base Point group of the Block Definition dialog box.
The dialog box temporarily closes, and you're returned to your drawing.
This selects the insertion point for the door, and the Block Definition dialog box returns. The insertion point is the location, relative to the cursor, that the block references when it is inserted.
Click the Select Objects button in the Objects group of the Block Definition dialog box.
You're returned to the drawing again. The cursor changes to a pickbox, and the command-line interface displays the Select objects: prompt.
You're returned to the Block Definition dialog box.
The Delete option erases the selected objects after the block definition is created, requiring you to insert the block into the drawing.
The Convert To Block option replaces objects with a block definition as soon as the block is created. In this situation, the Convert To Block option would be a better choice, but it's a good idea to get some practice using the INSERT command, so click Delete.
The Block Definition dialog box should look similar to Figure 7.5.
The Block Editor loads, displaying the A-DOOR-36IN (A-DOOR-0915) block you just created (see Figure 7.6).
Because the objects, in this case the door and swing, used to create the A-DOOR-36IN (A-DOOR-0915) block were drawn on the A-DOOR layer, the objects within the block are also on that layer. As discussed earlier, the preferred practice is to define blocks such as this one on layer 0 so that they're easier to manage.
You have now created a block definition called A-DOOR-36IN (A-DOOR-0915). Block definitions are stored electronically with the drawing file. You need to insert the A-DOOR-36IN (A-DOOR-0915) block (known formally as a block reference) into the back door opening to replace the door and swing that were just deleted when the block was created.
You'll use the INSERT command to place the A-DOOR-36IN (A-DOOR-0915) block back into the drawing:
Make sure I07-01-DoorBlock.dwg (M07-01-DoorBlock.dwg) is open, and set the A-DOOR layer as the current layer.
This opens the Insert dialog box, where you will choose the block you would like to insert into your drawing.
A preview of the block appears in the upper-right corner (see Figure 7.9). Below the Name list are three groups with the Specify On-Screen option. These are used for the insertion procedure.
The command line reads Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]:.
The A-DOOR-36IN (A-DOOR-0915) block is no longer attached to the cursor, and its insertion point has been placed at the right end of the lower jamb line. The block now rotates as you move the cursor (see the left of Figure 7.11).
The A-DOOR-36IN (A-DOOR-0915) block properly appears in the drawing (see the right of Figure 7.11).
Each time a block is inserted, you can specify the following on the screen or in the Insert dialog box:
As you insert blocks, you can stretch or flip them horizontally by specifying a negative X scale factor, or vertically by specifying a negative Y scale factor—or you can rotate them from their original orientations. Because you created the A-DOOR-36IN (A-DOOR-0915) block from the door and swing that occupied the back door opening, and the size was the same, inserting this block back into the back door opening required no rotation, so you followed the defaults. You can insert the same block into the back door opening and flip the door horizontally by flipping the Y scale factor. This technique has been largely superseded by the use of dynamic blocks, discussed later in this chapter and in Chapter 9, “Using Dynamic Blocks and Tables,” so I won't demonstrate it in this book.
Nothing has changed about the geometry of the door, but it's now a different kind of object. It was a rectangle and an arc; now it's a block reference comprising a rectangle and an arc.
Doors are traditionally sorted into four categories, depending on which side the hinges and doorknob are on and which way the door swings open. To be able to use one door block for all openings of the same size, you need to know the following:
Because the interior door is smaller, you need to make a new block for it. You could insert the A-DOOR-36IN (A-DOOR-0915) block with a scale factor, but this would also reduce the door thickness by the same factor, and you don't want that.
On the other hand, for consistency, it's a good idea to orient all door blocks the same way, and the bathroom door is turned relative to the A-DOOR-36IN (A-DOOR-0915) block. You'll move and rotate the bathroom door and its swing to orient it like the back door:
After you finish the swinging doors, I'll go into some detail about the AutoCAD dynamic block, which you can use for all swinging doors.
The door and swing disappear, and the Block Editor will open to display the block you just created.
After changing the layer, click Close Block Editor, being sure to save changes.
NOTE If all your doors are at 90° angles, you can turn on Ortho mode to speed up the rotation process. With Ortho active, wherever you move the cursor at the Specify rotation angle <0.00>: prompt, the rotations are restricted to 90° increments.
TIP If you have trouble anticipating how a block such as the door block needs to be flipped or rotated during insertion, don't worry about it; just be sure to locate the insertion point accurately in the drawing. Then, after the block is inserted, you can flip or turn it by using the MIRROR and ROTATE commands.
This view looks the same as the view you started with at the beginning of this chapter (see Figure 7.2). Blocks look the same as other objects, and you can't detect them by sight. They're useful because you can use them over and over again in a drawing or in many drawings and because the block is a combination of two or more (and sometimes many more) objects represented as a single object. Your next task is to learn how to detect a block, but first I'll discuss the AutoCAD dynamic block feature.
Dynamic blocks are blocks whose appearance can be changed in a variety of ways, depending on how they are set up. Any block can be transformed into a dynamic block, and AutoCAD offers several sample dynamic blocks that have already been set up. Take a door block, for example. By adding extra parameters and controls to the block, you could use a single dynamic block for openings in a variety of preset sizes. The arc size would change, but the thickness of the door would remain the same. After you insert a dynamic block, click it. As shown in Figure 7.14, light-blue arrows (grips) appear at opposite sides of the opening to indicate that these are adjustable parameters. This is just an example and not steps for you to follow at this time. You will have a chance to work with dynamic blocks in Chapter 9.
THE FATE OF OBJECTS USED TO MAKE A BLOCK
The three radio buttons in the Objects group of the Block Definition dialog box represent the options you have for objects transformed into a block:
Retain The objects remain unblocked. Click this if you want to make several similar blocks from the same set of objects.
Convert To Block The objects become the block reference. Click this if the first use of the block has geometry identical to that of the set of objects it's replacing.
Delete The objects are automatically erased after the block has been defined. Click this if the first use of the block will be at a different scale, orientation, or location from the set of objects it's replacing.
When you click the arrow at the end of the door swing arc, the dynamics begin and markers appear below the opening (see Figure 7.15), indicating the preset sizes to which the door and swing can be changed. In this example, you can use the door for openings from 2′-0″ to 3′-6″, at 6″ intervals. (The tooltip shows where the cursor is, not the door size.)
Once you set a new size, the door and swing take on that size, as shown in Figure 7.16, whereas the door thickness remains the same. Now you can move this door to a smaller opening.
Later in this chapter, when I introduce palettes, I'll show you where to find sample dynamic blocks. For instructions on creating and using dynamic blocks, see Chapter 9.
Another way you can make several objects act as one is to use the GROUP command. Groups differ from blocks in that they do not replace separate objects with a single definition but instead associate several objects by name so that they react as if they were a single object.
Selecting one member object from the group selects all the members. Unlike objects in a block, members of a group can be added or removed, and you can toggle the group to allow the individual members to be selected. Use groups when you know that the association between the objects is not permanent, and use blocks when it might be. The procedure for creating a group is as follows:
Some similar programs use the term named selection set to represent what AutoCAD calls a group.
Make sure I07-03-InteriorDoor.dwg (M07-03-InteriorDoor.dwg) is open.
The command line confirms the group creation: Group “CLOSETDOOR” has been created.
Although you selected only one door panel, all four door panels highlight, and a bounding box defining the extents of your CLOSETDOOR group displays along with a single grip at the group's centroid (see Figure 7.18).
Click the Group Selection On/Off button on the Home tab Groups panel to turn off group selection temporarily.
Because Group Selection is currently disabled, only the panel you selected is highlighted (see Figure 7.19). In this state, you could modify the polyline defining the door panel you selected as if it were an ungrouped entity.
Groups are oftentimes utilized as a temporary drafting tool. As such, to ensure that your AutoCAD drawings remain uncluttered and performing at their best, you'll want to dispose of unneeded groups when you're finished with them.
Select any one of the four door panels to select the CLOSETDOOR group.
The CLOSETDOOR group is discarded, and the command line reads Group CLOSETDOOR exploded.
AutoCAD versions prior to the 2012 release included a limited subset of creation, editing, and management tools; AutoCAD has included a Groups feature for many releases. Despite these limitations, the Group object itself is the same as it was in earlier versions, making it possible to exchange drawings freely with groups between all recent AutoCAD versions.
You can detect blocks in a drawing in at least three ways: by using grips, by using the LIST command, and by looking at the Properties palette.
Grips appear on objects that are selected when no command is started. When an object that isn't a block is selected, grips appear at strategic places, such as endpoints, midpoints, and center points. But if you select a block, by default only one grip appears, and it's always located at the block's insertion point. Because of this, clicking an object when no command is started is a quick way to see whether the object is a block:
The door and swing turn into dashed lines, and a square blue grip appears at the hinge point, as shown in Figure 7.20.
The Grips group is on the right side, and Show Grips Within Blocks is unchecked by default (see Figure 7.21). If this option is checked and you click a block while no command is running, grips appear on all objects in the block, as if they weren't blocked. Leave this setting unchecked.
You can also change the size of the grip and any of the three color states. By default, unselected grips are blue, grips that you click to select are red, and grips over which you pause the cursor are green.
You'll look at grips in more detail in Chapter 12, “Dimensioning a Drawing.” You might need to know more about a block than just whether something is one. If that is the case, you'll need to use the LIST command.
Much like the Properties palette, the LIST command can be used to gather information about a selected object. Although both are effective tools for reporting information about objects in a drawing, the LIST command displays only information. Unlike in the Properties palette, you cannot make changes to properties such as the layer. Despite this limitation, many users like the lightweight and concise nature of the LIST command and prefer it to the Properties palette. The following exercise demonstrates how to use the LIST command to learn more about a block:
Click the List button from the Home tab expanded Properties panel, or enter LI at the Type a Command: prompt.
The AutoCAD command line temporarily expands to cover the drawing area (see Figure 7.22). In the command-line interface, you can see the words BLOCK REFERENCE Layer: “A-DOOR”, followed by 12 lines of text. These 13 lines describe the block you selected.
The information displayed includes the following:
TIP The expanded AutoCAD command line isn't exclusively for use with the LIST command. Instead, it is a constantly scrolling history of the command prompt. The F2 key acts as a toggle to expand or consolidate the command line. You can even copy information from all but the bottom line for use inside or outside AutoCAD.
The command line expands again, and you can see information about the stair lines that you selected.
If the command line reads Press ENTER to continue: (see Figure 7.23), the amount of information is too large for the expanded command line.
In Chapter 6, you used the Properties palette to change the individual linetype scale for the roof objects. It can also be a tool for investigating objects in your drawing. When the Properties palette is open and only one object is selected, the palette displays data specific to the selected object. If multiple objects are selected, it shows only the data shared by those objects.
Given the contextual nature of the Properties palette, it's important to note this behavior. As an example, information such as the name of a block will display only when one or more of that same block is selected. In contrast, selecting both a block and a line will display only the properties both objects share (such as layer), omitting differences (such as block name).
Click the Properties button on the View tab Palettes panel of the Ribbon. Alternatively, you can right-click and choose Properties from the context menu, or press Ctrl+1.
The Properties palette opens. The data displayed on the palette is similar to that displayed when you used the LIST command, but it's in a slightly different form (see Figure 7.24). At the top of the dialog box, a drop-down list displays the type of object selected—in this case, a block reference. The fields that are white signify items that you can change directly in the palette, and items that are grayed out cannot be changed. You can't change any values in the AutoCAD text window.
Block insertion means the same thing as block reference, and both are casually called blocks.
TIP The X you click to close the Properties palette is in the upper-left or upper-right corner of the palette if it's floating and in the upper-right corner if it's docked.
If you're ever working on a drawing that someone else created, these tools for finding out about objects will be invaluable. The next exercise on working with blocks involves placing windows in the walls of the cabin.
You can create all the windows in the cabin floor plan from one block, even though the windows are four different sizes (see Figure 7.25). You'll create a window block and then go from room to room to insert the block into the walls:
The Osnap menu should look similar to Figure 7.26. Turn on the Object Snap option in the status bar.
Because the widths of the windows in the cabin are multiples of 12″ (305 mm), you can insert a block made from a 12″ (305 mm) wide window for each window, and you can apply an X scale factor to the block to make it the right width. The first step is to draw a 12 ″ (305 mm) wide window inside the wall lines.
Start the LINE command, and then click the Nearest Osnap button on the Shift+right-click menu or enter NEA.
The Nearest osnap will allow you to start a line on one of the wall lines. It snaps the cursor to any part of any object that is under the cursor and guarantees that the objects form an intersection but do not cross.
Use the Nearest Osnap button when you want to locate a point somewhere on an object but aren't concerned exactly where on the object the point is located.
A line begins on the upper wall line.
The line is drawn between the wall lines, as shown in Figure 7.29. Press to end the LINE command.
The line is offset 12″ (305 mm) to the right. Press to end the OFFSET command.
After pressing to end the LINE command, your drawing should look like Figure 7.30.
The three lines you've drawn will make up a window block. They represent the two jamb lines and the glass (usually called glazing). By varying the X scale factor from 2 to 6, you can create windows 2′ (610 mm), 3′ (915 mm), 4′ (1220 mm), 5′ (1525 mm), and 6′ (1830 mm) wide. This is a single-line representation, with no double lines to indicate the frames, so for scaling the blocks, there is no thickness issue as there was with the doors.
Before you create the block, you need to decide the best place for the insertion point. For the doors, you chose the hinge point because you always know where it will be in the drawing. Locating a similar strategic point for the window is a little more difficult but certainly possible.
You know the insertion point shouldn't be on the horizontal line representing the glazing, because the insertion point will always rest in the middle of the wall. There is no guideline in the drawing for the middle of the wall, and doing so would require a temporary tracking point every time a window is inserted. Windows are usually dimensioned to the midpoint of the glazing line rather than to either jamb line, so you don't want the insertion point to be at the endpoint of a jamb line. The insertion point needs to be positioned on a wall line but also lined up with the midpoint of the glazing line.
To locate this point, you'll use an object snap called Mid Between 2 Points. As the name suggests, the M2P osnap, as it's commonly called, snaps to a point midway between two other points you select. Follow these steps to set the base point for the window block along the outside wall line and midway between the window's edges:
As mentioned earlier, in the architectural discipline, windows are often referred to as glazing. The U.S. National CAD Standard also uses the term, making the NCS code for windows GLAZ.
The Mid Between 2 Points object snap is rather unique in that it is generally used in conjunction with other osnaps and is not found on the Object Snap toolbar. In this case, you want to find the midpoint between two endpoints.
The A-GLAZ block has been defined, and the 12″ (305 mm) window has been erased.
This completes the definition of the block that will represent the windows. The next task is to insert the A-GLAZ block where the windows will be located and scale them properly.
Several factors come into play when you're deciding where to locate windows in a floor plan:
For this exercise, you'll work on the windows for each room, starting with the kitchen, and make a total of five windows at either 3′-0″, 4′-0″, 5′-0″, or 6′-0″ wide (see Figure 7.32).
As you can see in Figure 7.32, the kitchen has windows on two walls: one 4′-0″ (1220 mm) window centered over the stove in the back wall and one 3′-0″ (915 mm) window centered over the sink in the top wall. You'll make the 4′ (1220 mm) window first:
Polar Tracking, Object Snap, Object Snap Tracking, and Dynamic Input should now be in their On positions.
The new Layer1 layer appears and is highlighted. Enter A-GLAZ to rename the layer.
In your drawing, the 12″ (305 mm) window block is attached to the cursor at the insertion point (see Figure 7.34).
Note that it's still in the same horizontal orientation that it was in when you defined the block. To fit it into the left wall, you'll need to rotate it as you insert it.
The stove line overlaps the wall line, and the midpoints of each are close together.
The Y scale factor will be 1 for all the A-GLAZ blocks because all the walls that have windows are 6″ wide—the same width as the A-GLAZ block.
The window block is now 4′-0″ (1220 mm), and you are prompted for the rotation angle.
The Polar Tracking lines and tooltip appear (see the middle image of Figure 7.35). They show you how the window will be positioned if the rotation stays at 90°. The window fits nicely into the wall here.
The A-GLAZ block appears in the left wall. The INSERT block command ends (see the right side of Figure 7.35).
The window over the sink is centered on the sink, but the sink line doesn't overlap the wall as the stove line did. You'll use the same snap tracking procedure that you used in Chapter 5, “Developing Drawing Strategies: Part 2,” to set the window block's insertion point without the need to draw extraneous geometry. Refer to Figure 7.32, shown earlier, as you follow the procedure here:
You want to create one 3′-0″ (915 mm) window, centered over the sink. Be sure the Endpoint and Midpoint osnaps are running, and turn off the Perpendicular osnap.
TIP When Object Snap Tracking is turned on and the plus sign (+) appears at the Object Snap marker, a tracking point has been acquired. It remains acquired until you place the cursor directly on the object snap symbol a second time or until that part of the command is done.
When the crosshair reaches a point directly above the first tracking point, a vertical tracking line appears, and the tooltip identifies the intersection of the two tracking lines as Endpoint: <0.00°, Midpoint: <90.00° (see Figure 7.37).
The 3′-0″ (915 mm) window is inserted into the wall behind the sink. Your kitchen, with the second window block inserted, should look like Figure 7.38.
As you can see, by using the Object Snap Tracking tool, you can quickly and precisely locate an insertion point even when a snappable feature doesn't exist.
TIP When using Object Snap Tracking, you'll inevitably acquire a tracking point that you don't need or want. To remove it, place the crosshair cursor on it momentarily. The tracking point will disappear.
You've inserted two different-sized window blocks at two different rotations. Just three remain to be inserted: one in the bathroom and two in the living room. You'll copy the horizontal kitchen window into the living room and then use the Properties palette to change the block's scale, resulting in a 6′-0″ (1830 mm) window.
Referring back to Figure 7.32, you see that the windows are 7′-6″ (2286 mm) apart. Because the insertion points are centered horizontally in the blocks, the insertion points of the two windows are 12′-0″ (3659 mm) apart. You need to copy the 3′-0″ (915 mm) kitchen window 12′-0″ (3659 mm) to the right.
Clicking near the block that you are moving will keep everything visually compact.
The window is copied 12′-0″ (3659 mm) to the right.
As you've seen, you can change many parameters of an object, including the scale factors for a block definition, by using the Properties palette.
The last two windows to insert are both in the bottom wall, one in the living room and one in the bathroom. You'll use skills you've already developed to place them:
This window is 5′-0″ (1525 mm) wide, and its insertion point is 7′-0″ (2134 mm) from the pop-out for the hot tub (4′-6″ + 2′-6″, or 1372 mm + 762 mm).
The window is inserted 7′-0″ (2134 mm) to the right of the corner.
The final window to draw is the 3′-0″ (915 mm) window in the bathroom. The insertion point is located 4′-0″ (1220 mm) from the bottom-left outside corner of the cabin. To create this window, you'll copy the living room window that you just drew and then change the X scale factor by using the Properties palette.
TIP If you can't recall a typed-in command, you can enter the first letter or two of the command, and the Autocomplete tool will suggest the rest of the command name for you. The tool will also give you a list of commands beginning with the same letter(s), which you may then cycle through using the Tab key. When the correct command appears at the command-line interface or dynamic input prompt, press to activate it.
Click the Insert icon to activate the Insertion Point object snap and temporarily disable the running osnaps.
The window is copied to its new location 4′-0″ (1220 mm) from the corner.
The window resizes to 3′-0″ (915 mm) wide, as shown in Figure 7.45.
TIP In a cluttered area, you can enter NON at any Select Point: or Select Objects: prompt to disable all running osnaps for the duration of a single pick.
This changes the view to include all the visible lines, and the view fills the drawing area.
Your drawing, with all the windows in place, should look like Figure 7.46.
You have inserted five windows into the floor plan, each generated from the A-GLAZ block. You created the A-GLAZ block on layer 0 and then made the A-GLAZ layer current, so each window block reference took on the characteristics of the A-GLAZ layer when it was inserted.
You can disassociate the components of blocks by using the EXPLODE command. The tool is found in the Home tab Modify panel. Exploding a block has the effect of reducing the block to the objects that make it up. Exploding the A-GLAZ block reduces it to three lines, all on layer 0.
You can also start the EXPLODE command by entering EXPLODE.
TIP All your windows are in walls 6″ (150 mm) thick, so the windows are all 6″ (150 mm) deep. But what if you want to put a window block in a 4″ (100 mm) wall between two interior rooms? You can still use the A-GLAZ block. During insertion, you change the Y scale factor to to reflect the change in thickness of the wall.
Typically, when you choose to EXPLODE a block, you want the linework to retain the layer displayed in your drawing. Users of AutoCAD (not Autodesk® AutoCAD LT®) have another command named BURST that does just that. You can find the BURST command and the Explode Attributes button on the Express Tools tab Blocks panel. Like the EXPLODE command, BURST reduces the A-GLAZ block into three lines, but they will retain the correct A-GLAZ layer.
One of the biggest advantages to using blocks over manually drawing items such as doors and windows in your drawing is the ease with which blocks can be modified. Earlier, you used the Block Editor as you were defining blocks. In this section, you'll use the Block Editor again, this time not to define a new block but to modify an existing one. More specifically, you'll modify the A-GLAZ (window) block and see how the changes you make are reflected throughout your drawing.
Let's say that the client who's building the cabin finds out that double-glazing is required in all windows. You'll want the windows to show two lines for the glass. If you revise the A-GLAZ block definition, the changes you make in one block reference will be made in all six windows.
NOTE Using standard commands, you can MOVE, ROTATE, COPY, ERASE, SCALE, and EXPLODE blocks. All objects in a block are associated and behave as if they were one object.
Alternatively, you can access the Block Editor from the Insert tab Block Definition panel Block Editor tool, or by entering BEDIT at the command line.
In the drawing area, the rest of the drawing disappears, the background turns gray, and the Block Editor tab and panels appear in the Ribbon. Only the A-GLAZ block and the Block Authoring Palettes remain (see Figure 7.48). You are now in Block Editor mode.
On the Open/Save panel, click the Save Block button.
If you click the Close Block Editor button without saving the changes to the block, an AutoCAD warning window appears, allowing you to save the changes or exit the Block Editor without saving the changes.
The Block Editor closes, and you are returned to the cabin drawing.
You can transfer most of the information in a drawing to another drawing. You can do so in several ways, depending on the kind of information that you need to transfer. You can drag blocks and lines from one open drawing to another when both drawings are visible within the Application window. You can copy layers, blocks, and other named objects from a closed drawing into an open one by using the DesignCenter. I'll demonstrate these two features—and touch on a few others—as I finish this chapter. Note that these features don't contribute to our cabin project, so the drawing changes you make in the following sections are only temporary and won't be saved.
Named objects are, quite simply, AutoCAD objects with names, such as blocks and layers. Lines, circles, and arcs don't have individual names, so they aren't named objects.
In AutoCAD 2013, several drawings can be open at the same time, just like documents in a word processing program. You can control which one is visible, or you can tile two or more to be visible simultaneously. When more than one drawing is visible, you can drag objects from one drawing to another.
With I07A-FPLAYO.dwg (M07A-FPLAYO.dwg) as the current drawing, click the New button on the Quick Access toolbar.
When you open the Application menu and then click the Open Drawings button, a list of the open drawings is displayed. To bring the file you want in front of the others, click it.
Click the Tile Vertically button from the View tab User Interface panel.
The new blank drawing (called Drawing#.dwg) appears alongside I07A-FPLAYO.dwg (M07A-FPLAYO.dwg), as shown in Figure 7.51.
Each drawing has a title bar, but only one drawing can be active at a time. At this time, the blank drawing (probably named Drawing1) should be active. If it is, its title bar is dark blue or some other color, and the I07A-FPLAYO.dwg (M07A-FPLAYO.dwg) title bar is grayed out. If your I07A-FPLAYO.dwg (M07A-FPLAYO.dwg) drawing is active instead, click once in the blank drawing.
The new drawing might be called Drawing2.dwg or Drawing3.dwg. This doesn't affect how the exercise works.
The walls (A-WALL) and decks (A-DECK) should be the only lines visible.
A copy of the selected cabin lines is attached to the mouse as if you had used the MOVE command (see Figure 7.52).
The blank drawing is now active and contains the lines for the walls and decks (see Figure 7.53).
In this fashion, you can drag any visible objects from one drawing into another, including blocks. If you drag and drop a block, its definition is copied to the new drawing, along with all layers used by objects in the block. A shortcoming of this method is that you're simply inserting the objects into the other at an arbitrary coordinate. Because most plan sets are assembled so that the lower-left corner is at a certain coordinate (4′8′ in our case), the usefulness of this procedure is limited.
There is a way around this limitation. If you drag with the right mouse button instead of the left, a context menu will appear, providing a few options for placing the objects in the receiving drawing. Among the options available from the context menu is Paste To Orig Coords. This option will still insert the selected objects into the new drawing, but instead of inserting them at an arbitrary point, it will insert them in the same place they were located in the original drawing.
If you don't choose to have both open drawings visible in the Application window at the same time, you can always use the Copy and Paste tools available in most Windows-based programs. Here's the general procedure:
Click the Maximize icon in the upper-right corner of the new drawing. The new drawing fills the screen.
When the menu opens, notice at the bottom that the open drawings are displayed and the active one is checked (see Figure 7.54).
TIP Because the A-WALL-HEAD and A-ROOF layers are frozen, and the other layers that aren't visible at the moment are turned off, you can use the LAYON command. As its name implies, the LAYON command turns on every layer in a drawing. You can find the LAYON command on the Home tab expanded Layers panel Turn All Layers On tool.
You're prompted to specify a base point in the I07A-FPLAYO.dwg (M07A-FPLAYO.dwg) drawing.
TIP You can also cycle through the open drawings by holding down the key and then pressing the Tab key.
If you check the layers, you'll see that the new drawing now has an A-FLOR-FIXT layer, in addition to the A-WALL and A-DECK layers.
The DesignCenter is a tool for copying named objects (blocks, layers, text styles, and so on) to an opened drawing from an unopened one. You can't copy lines, circles, and other unnamed objects unless they are part of a block. You'll see how this works by bringing some layers and a block into your new drawing from I07A-FPLAYO.dwg (M07A-FPLAYO.dwg):
Maximize the window for your new drawing if it isn't already maximized.
The DesignCenter palette appears on the drawing area. It can be docked, floating or, if floating, hidden (see Figure 7.55). Your screen might not look exactly like the samples shown here. The tree diagram of file folders on the left might or might not be visible. Also, your DesignCenter might be wider or narrower.
Click the Tree View toggle button at the top of the DesignCenter (the fourth button from the right) a few times to close and open the file folder tree diagram.
You can resize the DesignCenter horizontally (and vertically as well, if it's floating), and you can resize the subpanels inside. If Auto-Hide is on, the DesignCenter hides behind the title bar until you put your cursor on it. Leave the tree view open.
Click the Load button in the upper-left corner of the DesignCenter palette to open the Load dialog box. Navigate to your Training Data folder and open it.
Now the left side of the DesignCenter lists your drawings in the Training Data folder, and I07A-FPLAYO.dwg (M07A-FPLAYO.dwg) is highlighted; the right side of the DesignCenter shows the types of objects in I07A-FPLAYO.dwg that are available to be copied into the current drawing—in this case, Drawing3.dwg (see the top of Figure 7.56).
The list of named objects in the right panel now appears below I07A-FPLAYO.dwg (M07A-FPLAYO.dwg) in the tree view on the left.
Click the Views button above the right window of the DesignCenter (the button on the far right), and choose List in the menu that opens.
This changes the view of layers displayed from icons into a list.
If you prefer dragging and dropping, click and hold the left mouse button, drag the cursor onto the drawing, and then release the mouse button.
Now let's see how this process works when you want to get a block from another drawing:
On the right side, the list of blocks in that drawing appears (see the top of Figure 7.58).
Click A-DOOR-36IN (A-DOOR-O915) in the right panel, and then, if necessary, click the Preview button at the top of the DesignCenter.
A picture of the block appears in the lower-right corner of the DesignCenter (see the bottom of Figure 7.58). You can resize the preview pane vertically.
As the cursor comes onto the drawing, the A-DOOR-36IN block appears. Use the Endpoint osnap to locate the block at the opening, as you did earlier in this chapter (see Figure 7.60).
You can also right-click and drag a block from the DesignCenter into the current drawing. If you do this, a context menu appears; click Insert Block. This opens the Insert dialog box, and you can complete the insertion procedure.
By doing this insertion, you've made the A-DOOR-36IN (A-DOOR-0915) block a part of your new drawing, and you can reinsert it in that drawing without the DesignCenter.
At the top of the DesignCenter window, the buttons on the left are tools for navigating through drives and folders to find the files you need to access; the buttons on the right give you options for viewing the named objects in the window.
You can transfer information between drawings in several other ways. This section looks at three of them:
To perform a Write Block, or WBLOCK, operation, you create a new file by telling AutoCAD which elements of the current drawing you want in the new file. Let's say you want to create a new DWG file for the bathroom of the cabin. Here are the steps:
In the middle portion, the Base Point and Objects groups are similar to those for creating a block.
As mentioned earlier, most project teams will establish a common location for their project. Assuming each of the drawings in your project are located in the same place, you can use 0,0,0 as the base point for the blocks you create with the WBLOCK command. You can accept the default Base Point of 0,0,0 to retain this common point in your cabin project.
If you select with a crossing window here, you'll get more than you need, but you can clean up the new drawing later.
DESIGNCENTER OPTIONS
Here's a brief description of the functions of the DesignCenter buttons, from left to right:
Load Opens the Load dialog box, which you use to navigate to the drive, folder, or file from which you want to borrow named AutoCAD objects.
Back Moves you one step back in your navigation procedure.
Forward Moves you one step forward in your navigation procedure.
Up Moves up one level in the folder/file/named objects tree.
Search Opens a Search dialog box in which you can search for a file.
Favorites Displays a list of files and folders that you have previously set up.
Home Navigates to the DesignCenter folder in the AutoCAD program. This folder has subfolders of sample files that contain libraries of blocks and other named objects to import through the DesignCenter. You can designate a different Home folder by selecting the folder, right-clicking, and then choosing Set As Home from the context menu.
Tree View Toggle Opens or shuts the left panel that displays the logical tree of folders, files, and unnamed objects.
Preview Opens or shuts a preview window at the bottom of the right palette window. When you highlight a drawing or block in the palette window, a preview appears. You can resize the preview pane.
Description Displays or hides a previously written description of a block or drawing. You can resize the Description pane.
Views Controls how the items in the palette window are displayed. There are four choices: Large Icons, Small Icons, List, and Details.
You can use the WBLOCK command in three ways, which are available via radio buttons at the top of the Write Block dialog box in the Source group. Here's a brief description of each:
Block To make a drawing file out of a block that's defined in the current drawing, select the name of the block from the drop-down list at the top and then follow the procedure in steps 4 through 9 in the preceding exercise. When you follow this procedure, the objects in the new drawing are no longer a block. Wblocking a block has the effect of exploding it.
Entire Drawing Click this button to purge a drawing of unwanted objects such as layers that have no objects on them and block definitions that have no references in the drawing. You aren't prompted to select anything except the information called for in the preceding steps 4 through 9. You can keep the same drawing name or enter a new one. A preferable way to accomplish the same task is to use the PURGE command:
Objects You select which objects to use to create a new file, as in the preceding steps 1 through 9.
When you insert a drawing into another drawing, it comes in as a block. You use the same Insert tool that you use to insert blocks, but in a slightly different way. For example, in the previous section, you Wblocked a portion of I07A-FPLAYO.dwg (M07A-FPLAYO.dwg) and made a new file called I07-11-Bath.dwg. Now suppose you want to insert I07-11-Bath.dwg into a new drawing. Take the following steps:
The drawing file that you selected is now displayed in the Name drop-down list. At this point, a copy of I07-11-Bath.dwg has been converted to a block definition in Drawing#.dwg.
You can uncheck Specify On-Screen and accept the defaults for each parameter.
The contents of I07-11-Bath.dwg are displayed in your new drawing at the same location they were found in I07A-FPLAYO.dwg (M07A-FPLAYO.dwg).
You transfer blocks between drawings by dragging and dropping or by using the DesignCenter. You can also convert them into DWG files by using the WBLOCK command, and you can insert them back into other DWG files as blocks by using the INSERT command. These blocks become disassociated when they leave the drawing and can be inserted as a block when they enter another drawing.
AutoCAD provides a tool called palettes to make blocks and other features or tools easily accessible for any drawing. You'll now take a brief look at the sample palettes that come with AutoCAD, and you'll see how to manage them on the screen:
If palettes aren't already visible in the drawing area, click the Tool Palettes button, found on the View tab Palettes panel, to display the palettes (see Figure 7.63).
Notice the scroll bar next to the title bar (see Figure 7.64). This appears when there is more content than the palette can show. Blocks that are shown with a lightning bolt symbol as part of the icon are dynamic blocks.
A FEW WORDS ABOUT TOOL PALETTES
You can also open the tool palettes from the menu bar by clicking Tools Palettes Tool Palettes or by using the Ctrl+3 shortcut keys. Like the DesignCenter palette, tool palettes can be floating or docked on either side of the drawing area, and the navigation bar can be on the left or right side.
Your palettes might appear different from those shown in a couple of ways. The ones shown here are positioned on the right side but aren't docked there. Yours might be transparent, showing your drawing beneath them, or your palettes might be hidden and show only the title bar. In Figure 7.63, several tabs are on the right side of the palette area, indicating the available palettes. On its left side is the palette title bar with control icons at the top and bottom.
On each palette is its content. The Hatches sample palette has hatch patterns and fills (discussed in Chapter 11, “Working with Hatches, Gradients, and Tool Palettes”), and the Draw and Modify palettes contain commands from the Draw and Modify toolbars, respectively.
Here you can toggle transparency on and off and adjust the degree of transparency for the tool palettes and many other palettes in the software.
WARNING AutoCAD might display a notification dialog box, rather than the Transparency dialog box, if your video driver and operating system combination is unable to display palette transparency.
Now the drawing is visible through the palettes (see Figure 7.66).
The palettes disappear except for the title bar (see Figure 7.67). When you move the cursor back onto the title bar, the palettes reappear—a handy feature.
When they are in floating mode, the Properties palette and DesignCenter also have the Auto-Hide option.
With both Transparency and Auto-Hide active, the palettes are less intrusive and take up less screen area, but they remain easily accessible. In Chapter 11, you'll learn more about the Tool Palette feature, palette properties, and how to set up new palettes and change existing ones.
This chapter has outlined the procedures for setting up and using blocks, the WBLOCK command, and the AutoCAD DesignCenter. Blocks follow a set of complex rules, some of which are beyond the scope of this book.
Here are some suggestions that will give you some practice in working with blocks, drag-and-drop procedures, and the DesignCenter:
In each of these examples, choosing the most useful location for the insertion point will determine whether the block that you create will be a handy tool or a big frustration.
18.218.114.244