Skip to content
Tutorials Center
My learning

Topics

Lesson 21 of 38 ยท Layers, Blocks and Annotation

AutoCAD Blocks: Create, Insert, Edit and Reuse Symbols

Learn AutoCAD blocks: create them with BLOCK and WBLOCK, insert them with scale and rotation, edit in the Block Editor, use dynamic blocks, explode safely and count with BCOUNT.

A block is a group of objects saved under one name and treated as a single object. You draw a door, a chair or a bolt once, turn it into a block, and then insert it as many times as you like. Every copy is a lightweight reference to one shared definition, so a drawing with 500 chairs stays small, and changing the definition updates all 500 at once.

AutoCAD itself cannot run on this site. Commands and dialogs are described as they appear in the program, and the runnable examples are labelled JavaScript stand-ins that model the maths of inserting blocks.

Creating a block with BLOCK

  1. Draw the objects on layer 0 with ByLayer properties (see layers). That way the block adopts the color of whichever layer it is inserted on.
  2. Type BLOCK (alias B) or click Insert > Block Definition > Create Block.
  3. Enter a Name, click Pick point to choose the base point (the handle you will hold when inserting, such as a door's hinge), then Select objects.
  4. Choose what happens to the originals: Retain, Convert to block or Delete.
  5. Set Block unit (millimeters, inches...) and tick Allow exploding unless you want to forbid it. Click OK.

The definition is stored in the current drawing only. To make a block available to other drawings, save it as a file with WBLOCK (alias W): pick Block, Entire drawing or Objects, give a path, and AutoCAD writes a .dwg you can insert anywhere.

Inserting with INSERT

INSERT (alias I) opens the Blocks palette (since AutoCAD 2020) with tabs for Current Drawing, Recent and Other Drawings. Click a block, set options (insertion point, scale, rotation, Repeat placement, Explode), and click in the drawing. At the command line you can also type INSERT, then the name, then points:

TEXT
Command: INSERT
Specify insertion point or [Basepoint/Scale/Rotate]: 2000,1500
Specify rotation angle <0>: 90

The insertion maths is a scale, then a rotation, then a move. A point (x, y) of the definition (measured from the base point) lands at:

TEXT
x' = ix + sx * x * cos(a) - sy * y * sin(a)
y' = iy + sx * x * sin(a) + sy * y * cos(a)

where (ix, iy) is the insertion point, sx/sy are scale factors and a is the rotation.

JS Stand-in: where does a block's corner land after INSERT?

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Units matter. If a block was made in meters and your drawing is in millimeters, it arrives 1000 times too small. Set the block's unit when you create it, and check INSUNITS; AutoCAD scales on insertion when the units differ and Automatically scale is on.

Editing a block definition

Double-click a block, or run BEDIT, to open the Block Editor. It is a separate workspace: change the geometry, then Save Block and Close Block Editor. Every reference in the drawing updates. For a quick one-off edit in place, REFEDIT lets you modify a block while seeing the rest of the drawing, then Save changes.

To break a single reference apart, use EXPLODE (X). Be careful: explosion turns the reference into loose objects, so it no longer follows the definition. Objects with ByBlock properties fall back to the layer of the former block (usually layer 0). Prefer editing the definition.

Dynamic blocks

A dynamic block carries parameters (distance, angle, visibility, lookup...) and actions (stretch, rotate, array, flip) defined in the Block Editor. After insertion, grips let you stretch a door from 800 to 1000 mm or flip its swing without exploding it. One visibility parameter can pack many variants, such as chair, armchair and stool, into one block that you switch with a grip. In the Block Editor, the Block Authoring Palettes (BAUTHORPALETTE) hold the parameters and actions, and Test Block lets you try the behaviour before saving.

Counting blocks

Take-offs are a daily job: how many sockets, doors and chairs? BCOUNT (Home > Utilities > Count in 2019 and later) lists every block in the selection with its number. The result can be placed as a table or highlighted in the drawing. Counting never changes the drawing.

JS Stand-in: what BCOUNT reports

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Block libraries and reuse

  • Blocks palette and Tool Palettes (Ctrl+3) hold favourites that you drag into the drawing.
  • DesignCenter (ADCENTER, Ctrl+2) browses other drawings and drags their blocks, layers and styles across.
  • Insert > Libraries (Autodesk Docs) share blocks across a team.
  • Annotative blocks (check Annotative on creation) scale their size to the layout scale, which suits symbols such as north arrows.
flowchart LR
  A["Draw on layer 0"] --> B["BLOCK: name + base point"]
  B --> C["INSERT: copies are references"]
  C --> D["BEDIT: change definition"]
  D --> C
  B --> E["WBLOCK: save as .dwg file"]

One definition, many references: editing it updates every copy.

Common mistakes

  • Making blocks from objects with fixed colors, so they ignore the layer.
  • Choosing a bad base point (the middle of nowhere), so placement is awkward.
  • Using EXPLODE on every block "to edit it" and losing the link to the definition.
  • Mixing up units between drawings.
  • Redefining a block by inserting a file with the same name: AutoCAD asks whether to Redefine; answer carefully, since this changes all references.
  • Leaving hundreds of unused blocks, which bloats the file; run PURGE.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Why should block geometry usually be drawn on layer 0 with ByLayer properties?

    Objects on layer 0 with ByLayer properties inherit the current layer's color, linetype and lineweight on insertion.
  2. 2. Which command saves a block as a separate DWG file that other drawings can insert?

    WBLOCK writes objects or a block to a drawing file. BLOCK only creates a definition inside the current drawing.
  3. 3. What happens to all references when you save changes to a block definition in the Block Editor?

    References point to one shared definition, so changing it updates every insertion.
  4. 4. A block made in meters is inserted in a millimeter drawing with no unit conversion. How large does it appear?

    One meter is 1000 drawing units in a millimeter drawing, so a 1-unit shape looks tiny. Set block units and use automatic unit scaling.

Summary

  • A block is a named group of objects; inserts are references to one definition.
  • BLOCK creates it, WBLOCK saves it as a file, INSERT places it with a scale and rotation.
  • Edit the definition with BEDIT or REFEDIT; avoid EXPLODE.
  • Dynamic blocks add stretch, flip and visibility states; BCOUNT counts references.
  • Build on layer 0 with ByLayer properties, and check units.

Next: Block attributes and data extraction