Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
autocad_2013_for_dummies.pdf
Скачиваний:
24
Добавлен:
19.02.2016
Размер:
24.71 Mб
Скачать

Chapter 17: The ABCs of Blocks 375

If you select the Convert to Block radio button (the default) in Step 5, AutoCAD creates a block reference pointing to the new block definition. The objects look the same onscreen, but they are now an instance of the block rather than the original, separate objects. Most of the time, this is your best choice.

If you select the Retain radio button, the objects remain in place but aren’t converted into a block reference. They remain individual objects with no connection to the new block definition.

If you select the Delete radio button, the objects disappear, but the block definition still gets created.

When you define a block, you can include a special kind of variable text object called an attribute definition. When you insert a block that contains one or more attribute definitions, AutoCAD prompts you to fill in values for the text fields. Attributes are useful for things like variable title block information (sheet number, sheet title, and so on), electric motor nameplate information, and symbols that contain different codes or callouts. We describe how to create and use attribute definitions later in this chapter.

Keep your common symbol drawings in one or more specific folders that you set aside just for that purpose. You may want to use one of the following techniques to develop a library of symbols that you use frequently:

Create a separate DWG file for each block.

Store a bunch of symbols as block definitions in one drawing and use DesignCenter to import block definitions from this drawing when you need them.

If you have a block definition in one drawing that you would like to use in other drawings, use the WBLOCK (WriteBlock) command to extract and write a copy of it out to disk as a new DWG file and then insert it into other drawings as required.

Inserting Blocks

AutoCAD provides a number of ways to insert a block or a whole drawing file, but the most commonly used and most flexible is the Insert dialog box. Here’s the procedure for inserting a block:

1. Set an appropriate layer current, as described in Chapter 6.

Insert each block on a layer that has something to do with the block’s geometry or purpose:

www.it-ebooks.info

376 Part IV: Advancing with AutoCAD

If all the objects in the block definition reside on one layer, it’s usually best to insert the block on that layer.

If the block geometry spans several layers, choose one of them to insert the block on.

If any of the block definition’s geometry was created on Layer 0, that geometry will inherit the color, linetype, and other object properties of the layer on which you insert the block. It’s like the chameleon changing color to match its surroundings or a politician changing his position to match the day’s opinion polls.

2.On the Ribbon’s Home tab, click the Insert button on the Block panel.

The Insert dialog box appears, as shown in Figure 17-3.

Figure 17-3: The Insert dialog box.

3.Enter the block definition name (or external filename) by using one of the following methods:

Use the Name drop-down list to select from a list of block definitions in the current drawing.

Click the Browse button to select an external DWG file and have AutoCAD create a block definition from it.

You can browse to any existing drawing and insert it into the current drawing. This creates a new block definition within the host drawing. The new definition doesn’t retain any connection at all to the inserted drawing.

You can use an external drawing to replace a block definition in your current drawing. If you click Browse and choose a file whose name matches the name of a block definition that’s already in your drawing,

www.it-ebooks.info

Chapter 17: The ABCs of Blocks 377

AutoCAD asks you to confirm the update and, if you agree, updates the block definition in your drawing with the current contents of the external file. This process is block redefinition, and AutoCAD automatically updates all block references that point to the block definition.

4. Enter the insertion point, scale, and rotation angle of the block.

You can either select the Specify On-Screen check box in each area to specify the parameters onscreen at the command prompt; or type the values you want in the text boxes in the Insertion Point, Scale, and Rotation areas.

Select the Uniform Scale check box to constrain the X, Y, and Z scal- ing parameters to the same value (which is what you want in almost all cases).

5.If you want AutoCAD to create a copy of the individual objects in the block instead of a block reference that points to the block definition, select the Explode check box and click OK.

6.If you selected the Specify On-Screen check box for the insertion point, scale, or rotation angle, answer the prompts on the command line to specify these parameters.

After you insert a block, all the objects displayed in the block reference behave as a single object. When you select any object in the block reference, AutoCAD highlights all the objects in it.

Another way to insert a block is to drag a DWG file from Windows Explorer and drop it anywhere in the current drawing window. AutoCAD then prompts you to choose an insertion point and optionally change the default scale factor and rotation angle. Similarly, you can drag a block definition from the Blocks section of the DesignCenter palette and drop it into the current drawing window. (Chapter 6 describes DesignCenter.)

You can now import Inventor part (.IPT) and assembly (.IAM) models directly into AutoCAD 2013. Inventor is AutoCAD’s 3D parametric and associative sibling, intended primarily for mechanical design. Imported Inventor files come across as dumb 3D solids that lose their parametrics and associativity, but they can be modified and edited like any other AutoCAD 3D solid. We cover AutoCAD’s 2D parametrics in Chapter 19, and introduce you to 3D modeling in Chapters 21 through 23.

AutoCAD provides one additional way of inserting blocks: the Tool Palettes window, which we describe in Chapter 2. As is true of using a tool palette for hatching (Chapter 15), you first must create and configure appropriate tools. The easiest method is right-clicking a drawing in DesignCenter and choosing Create Tool Palette. A new tabbed page is added to the Tool Palettes window,

www.it-ebooks.info

378 Part IV: Advancing with AutoCAD

containing all the block definitions from the drawing that you right-clicked. Simply click and drag a tool to insert its corresponding block into a drawing.

Dragging blocks from a tool palette doesn’t give you the chance to specify a different insertion scale, nor can you use all AutoCAD’s precision tools to

specify the insertion point precisely — you may need to move the block into place after inserting it. We recommend that you first master the other block insertion methods described in this chapter — especially using the Insert dialog box and DesignCenter palette. Then if you find yourself inserting the same blocks frequently, consider creating a tool palette containing them. Check out “Add Content with DesignCenter” in the AutoCAD online help system for more information.

Although the preceding paragraph refers to the Tool Palettes window, palettes in AutoCAD are not like regular windows or dialog boxes. They are modeless, which means that they can stay open while you carry on with other tasks outside them. The official programmer-ese term for palettes is enhanced secondary window, or ESW for short. (We think we’re sticking with

palettes.)

Be careful when you insert one drawing into another. If the host (or parent) drawing and the inserted (or child) drawing have different definitions for layers that share the same name, the objects in the inserted drawing take on the layer characteristics of the host drawing. For example, if you insert a drawing with lines on a layer called Walls that’s blue and dashed into a drawing with a layer called Walls that’s red and continuous, the inserted lines on the Wall layer will turn red and continuous after they’re inserted. The same

rules apply to linetypes, text styles, dimension styles, table styles, multileader styles, and block definitions that are nested inside the drawing you’re inserting. As you probably remember from when you were little . . . parents rule!

If you need to modify a block definition after you’ve inserted one or more instances of it, use the Block Editor (BEDIT command); choose Block Editor on the Home tab’s Block panel. Look up BEDIT in the AutoCAD online help system.

Locate Using Geographic Data is an option in AutoCAD’s Insert dialog box. Geographic data refers to locating drawing geometry with reference to specific locations on planet Earth (so far) defined in one of a number of recognized global coordinate systems. This feature promises to be very big in the civil engineering community, or possibly for very large architectural projects, where a ground-based coordinate system is in place. If it sounds like something you need, look in the online help (and visit your local dealer or training center for further direction).

www.it-ebooks.info

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]