11. Create and Insert Blocks

Blocks are compound objects that are commonly used for symbols, parts, detail views, and title blocks.

A block is one or more objects combined to create a single object. The following are some examples of blocks inserted into a drawing.

Using blocks provides the following advantages:

Tip:

With online access, you can download AutoCAD drawing files from the web site of commercial vendors and suppliers. This option can save you a significant amount of time but check to make sure that these drawings are drawn correctly and to scale.

There are four things involved for inserting blocks in a drawing.

The following videos demonstrate some of the learning objectives covered in this topic:

Note:

Some of the concepts mentioned in the videos are not covered in this topic. For more information on dynamic blocks and annotative behavior, see About Dynamic Blocks and About Annotative Objects and Styles in the product help.

Learning Objectives

Prerequisites

Back to top

You should know how to do the following before continuing:

Prepare for the Exercises

Back to top

To follow along with the exercises in this topic, download the ZIP file containing the sample drawings.

 Download: Sample drawing files used for the following exercises

Note:

The ZIP file contains all drawings used for the exercises and only needs to be downloaded once. Keep the ZIP file to restore the original state of the sample drawings.

Insert a Block Reference

Back to top

Typically, you insert a block into the current drawing from one of these sources:

Once you insert a block, you can easily move, copy, rotate or scale it as a single object.

Try It: Insert a Block Reference
Insert two blocks using different methods: AutoCAD Design Center and the Blocks palette.

  1. On the Quick Access toolbar, click Open.
    Find
  2. In the Select File dialog box, browse to the sample files you previously downloaded and select the Office Plan.dwg file. Click Open.

  3. In the drawing area, zoom to the area indicated in the following image.

    You should see several workstations and conference rooms, one of the conference rooms contains a circle (table).

  4. On the ribbon, click Home tab > Layers panel > Layers drop-down list and choose PLANTS.

  5. Click View tab > Palettes panel > DesignCenter.
    Find
  6. On the DesignCenter palette, click over the title bar of the palette and drag the palette so you can see the conference room with the circle (table).

    Tip:

    The palette can be resized by moving the cursor to the top, bottom and opposite edge of the title bar. Click and drag when the cursor appears as a double sided arrow.

  7. Click the Folders tab and navigate to <drive>:\Program Files\Autodesk\AutoCAD <version>\Sample\<language>\DesignCenter.

    For example, the location for AutoCAD 2025 English on the default drive is C:\Program Files\Autodesk\AutoCAD 2025\Sample\en-us\DesignCenter.

  8. In the Folders tree view, left-side of the palette, click the + next to the DesignCenter folder and then the Home - Space Planner.dwg file. Select the Blocks node under the Home - Space Planner.dwg file.

  9. In the Content area, right-side of the palette, select and drag the Plant block into the lower-right corner of the conference room. Release the mouse button to insert the block.

  10. On the DesignCenter palette, title bar, click Close.

  11. On the ribbon, click Home tab > Layers panel > Layers drop-down list and choose CHAIRS.

  12. Click View tab > Palettes panel > Blocks.
    Find
  13. On the Blocks palette, Current Drawing tab, under the Options section:

    1. Clear all check boxes.

    2. Click the Insertion Point and Rotation check boxes.

  14. Under the Current Drawing Blocks section, click CHAIR7.

    After clicking of CHAIR7 from the palette, insertion of the block begins.

  15. Move the cursor near the circle (table) in the conference room labeled 6030.

  16. Hold down the Shift key and right-click. From the context menu, choose Quadrant.

  17. Move the cursor and snap to the quadrant at the bottom of the circle (table).

  18. At the Specify rotation angle <0.00>: prompt, enter -90.

    While you could continue by manually inserting three more chair blocks around the table, its more efficient to create a polar array of the chair block instead. You will learn how to create this polar array in the next exercise.

  19. On the Quick Access toolbar, click Save.
    Find

Create a Block Definition

Back to top

You can create blocks by associating objects and then giving them a name, or by creating a drawing to be used as a block.

A block definition includes its geometry, layers, colors, linetypes, and block attributes. Whenever you create a block or insert a drawing as a block, all this information is stored in the drawing file as non-graphic information.

Whenever you create a block or insert a drawing as a block, all this information is stored in the drawing file as a block definition. A block definition includes the geometry that visually defines how the block should look when inserted into a drawing. When a block is inserted into a drawing, it is known as a block reference. A block reference identifies where a copy of that block definition should be located, oriented, and scaled in the drawing. Block references are often simply called blocks.

Blocks can be created and saved in several places:

Note:

When creating geometry for a block, the geometry within the block can inherit its properties from their assigned layers as well as the layer on which the block is inserted. When the properties of geometry are assigned a ByBlock value, the object inherits its properties from the layer assigned to the block. Geometry placed on layer 0, when added to a block, also inherits its properties from the layer assigned to the block. For more information, see the Block Object Properties Reference topic in the product help.

Try It: Create a New Block Definition
Array a chair block around a circle and create a block that represents a conference table with four chairs.

  1. Continue with the Office Plan.dwg file from the previous exercise: Try It: Insert a Block Reference.

  2. Create a polar array of four chairs around the table. This can be done by doing the following:

    1. On the ribbon, click Home tab > Modify panel > Array drop-down menu > Polar Array.
      Find
    2. At the Select objects: prompt, select the chair block indicated in the following image and press Enter.

    3. At the Specify center point of array or [Base point/Axis of rotation]: prompt, hold down the Shift key and right-click. From the context menu, choose Center.

    4. Specify the center point of the circle adjacent to the chair for the center point of the array.

    5. Click Array Creation contextual tab > Items panel, click in the Items text box and change the value to 4, and then press Enter.

    6. At the Select grip to edit array or [ASsociative/Base point/Items/Angle between/Fill angle/ROWs/Levels/ROTate items/eXit]<eXit>: prompt, press Enter.

  3. Create a block definition of the table and four chairs. This can be done by doing the following:

    1. Click Insert tab > Block Definition panel > Create/Write Block drop-down menu > Create Block.
      Find
    2. In the Block Definition dialog box, Name text box, type Conf Table with Chairs.

    3. Under Base Point,

      1. Clear the Specify On-Screen check box.

      2. Click Pick Point.

    4. At the Specify insertion base point: prompt, hold down the Shift key and right-click. From the context menu, choose Center.

    5. Specify the center point of the circle.

    6. Under Objects,

      1. Clear the Specify On-Screen check box.

      2. Choose the Convert to Block option.

      3. Click Select Objects.

    7. At the Select objects: prompt, select the circle and array of chairs, and then press Enter.

    8. Click OK.

  4. Select the circle with the chairs around it.

    You should notice the circle and four chair blocks are selected, this is because the objects were replaced by the new block definition named Conf Table with Chairs.

  5. With the block selected, on the ribbon, click Home tab > Layers panel > Layers drop-down list and choose FURNITURE.

    The block is placed on the FURNITURE layer.

  6. Press Esc to deselect the selected block reference.

  7. On the ribbon, click Home tab > Layers panel > Make Current.
    Find
  8. At the Select object whose layer will become current: prompt, select the Conf Table with Chairs block reference in the 6030 room.

    The FURNITURE layer is made current. This can be faster than selecting a layer from the Layers drop-down list on the ribbon, especially if you don't know the layer you want to set as current but know of an object that is on the layer.

  9. If the Blocks palette is closed, on the ribbon, click View tab > Palettes panel > Blocks.
    Find
  10. On the Blocks palette, Current Drawing Blocks tab, click Conf Table with Chairs.

  11. At the Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]: prompt, specify a point near the middle of the adjacent conference room to insert a reference of the new Conf Table with Chairs block.

    Tip:

    If you want to place it at the midpoint between two corners, you could use the Mid Between 2 Points option on the Object Snap right-click menu.

  12. At the Specify rotation angle <0.00>: prompt, press Enter to accept the default rotation angle.

  13. On the Quick Access toolbar, click Save.
    Find

Store Information in Blocks with Attributes

Back to top

Blocks allow you to create identical instances of the same geometry and text, but there are situations where you might want the text to vary between block references. For example, you might want to create a block that represents a room number or a title block. In those situations, the geometry remains the same, but the text varies by room, floor, and client project.

Text objects added to a block definition are static, meaning all references of that block contain that same exact text. Blocks can be created to have editable values that can represent a part number, room number, or client name and address. These editable values are represented as attribute definitions within a block definition. When you create a block, you can optionally add attribute definitions to your drawing and then include them with the geometric objects of the block being defined.

Note:

The order in which attribute definitions are selected when defining a block sets the order in which they are presented during insertion or editing.

As a block with attribute definitions is inserted, you will be prompted to accept the default value or provide a new value.

After a block with attributes has been inserted, you edit the values assigned to the attributes.

Attribute values assigned to blocks can be extracted and inserted as a table or exported to a CSV file. Using attributes with blocks makes it possible to quickly generate quantity takeoffs and schedules based on your designs. This topic doesn't discuss extracting attribute values, but you can find information on how to do this in the product documentation.

Try It: Create a New Block Definition with Attributes
Explode the previous block you created that represents a conference table with four chairs. After the block is exploded, you add attribute definitions and then create a new block definition.

  1. Continue with the Office Plan.dwg file from the previous exercises: Try It: Insert a Block Reference and Try It: Define a New Block Definition.

  2. On the ribbon, click Home tab > Modify panel > Explode.
    Find
  3. At the Select objects: prompt, select the block with the four chairs in the first conference room (labeled 6030) and press Enter.

    The block is exploded back to its original objects which are the circle and four arrayed chairs.

  4. Click Insert tab > Block Definition panel > Define Attributes.
    Find
  5. In the Attribute Definition dialog box, match the options and values in the following image:

    1. Under Mode, clear all options except for the Invisible check box.

    2. Under Attributes, enter the following values

      1. Tag: LOCATION
      2. Prompt: Room Number:
      3. Default: 0000
    3. Under Insertion Point, check the Specify On-screen check box.

      Tip:

      Press the F3 key to toggle running object snaps on or off. Turning off running object snap will making placement easier.

  6. Click OK.

  7. At the Specify start point: prompt, specify a point near the center of the circle (table); exact placement isn't important.

  8. Press Enter to repeat the ATTDEF command.

  9. In the Attribute Definition dialog box, match the options and values in the following image:

    1. In the lower-right, check the Align Below Previous Attribute Definition check box.

    2. Under Attributes, enter the following values

      1. Tag: ITEMDESC
      2. Prompt: Item Description:
      3. Default: Conference Table with 4 Chairs

  10. Click OK.

  11. Click Insert tab > Block Definition panel > Create/Write Block drop-down menu > Create Block.
    Find
  12. In the Block Definition dialog box, Name text box, type New Conf Table with Chairs.

  13. Under Base Point,

    1. Clear the Specify On-Screen check box.

    2. Click Pick Point.

  14. At the *Specify insertion base point:* prompt, hold down the Shift key and right-click. From the context menu, choose Center.

  15. Specify the center point of the circle.

  16. Under Objects,

    1. Clear the Specify On-Screen check box.

    2. Click the Convert to Block option.

    3. Click Select Objects.

  17. At the Select objects: prompt, select the objects for the block in the following order.

    1. Circle

    2. Array of chairs

    3. LOCATION attribute definition

    4. ITEMDESC attribute definition

  18. Press Enter to end object selection and return to the Block Definition dialog box.

  19. In the Block Definition dialog box, click OK.

    When the block is defined and the Convert to Block option is selected, the selected objects are replaced by a block reference of the new block. This is the same as inserting the block into the drawing, which will result in the automatic displaying of the Edit Attribute dialog box.

  20. In the Edit Attribute dialog box, click OK to accept the default values.

    You could specify new values for the attributes in this dialog box, but you will edit the block's attributes in a few steps.

    The attribute values are assigned to the block but are not visible on screen because the attributes were created with the Invisible flag turned on.

  21. After a block with attributes is inserted, you can edit the values of its attribute. This can be done by doing the following:

    1. Double-click the New Conf Table with Chairs block.

    2. In the Enhanced Attribute Editor dialog box, select the LOCATION tag and replace the current value with 6030.

    3. Click OK to save the changes made.

  22. Now let's replace the other block with conference table and four chairs that doesn't have attributes with the new block.

    1. On the ribbon, click Home tab > Modify panel > Erase.
      Find
    2. At the Select objects: prompt, select the block with the 4 chairs in the second conference room, labeled 6028, and press Enter.

    3. On the Blocks palette, Current Drawing tab, click New Conf Table with Chairs and specify a point in the Conference Room 6028.

    4. If prompted for a rotation, press Enter to accept the default value.

    5. In the Edit Attribute dialog box, Room Number: text box, replace the default text 0000 with 6028. Click OK.

  23. On the Quick Access toolbar, click Save.
    Find

Summary

Back to top

You learned how to insert blocks into a drawing that represent symbols, parts, detail views, and title blocks. Additionally, you also learned to create your own block definitions in the current drawing with and without attribute definitions.

Back to top
Command Description
ADCENTER Manages and inserts content such as blocks, xrefs, and hatch patterns.
ATTDEF Creates an attribute definition for storing data in a block.
BLOCK Creates a block definition from selected objects.
BLOCKSPALETTE Displays the Blocks palette, which you can use to insert blocks and drawings into the current drawing.
EATTEDIT Edits attributes in a block reference.