01 / 21

Block
Attributes

Learn to create, attach, and edit block attributes in AutoCAD using the Enhanced Attribute Editor for smart, data-rich drawings.

AutoCAD

What Is a Block in AutoCAD?

A block is a collection of objects grouped into a single named unit. Once defined, you can insert the same block multiple times across a drawing without redrawing it. Blocks keep your files smaller, your work consistent, and edits global.

BLOCK DEF Instance 1 Instance 2 Instance 3 One definition → many insertions

What Are Block Attributes?

A block attribute is a text-based tag embedded inside a block definition. Each time you insert the block, AutoCAD prompts you for the attribute's value: making every instance carry its own unique data.

Tag
The identifier name (e.g., PART_NUMBER). Never changes across instances.
Prompt
The question AutoCAD asks at insertion (e.g., "Enter part number:").
Value
The actual data entered per instance (e.g., "A-2045"). This is what varies.

Why Attributes Matter

1
Data Extraction. Export attribute values to a table or spreadsheet for bills of materials, schedules, and inventories.
2
Consistency. The same block definition ensures every label has the same font, size, and position: only the data changes.
3
Efficiency. Update one block definition and all instances update globally. Edit individual values with the Enhanced Attribute Editor.
4
Automation. Scripts and LISP routines can read/write attribute values, enabling batch processing across hundreds of blocks.

Core Command: ATTDEF

The ATTDEF (Attribute Definition) command creates an attribute within a block. It opens a dialog where you set the Tag, Prompt, Default value, and display modes.

Attribute Definition Dialog Mode Invisible Constant Verify Preset Attribute Tag: ROOM_NAME Prompt: Enter room name: Default: Office Text Settings Height: 0.25 Justify: Middle Style: Standard OK

Attribute Modes Explained

Invisible
Attribute exists in the block but is not displayed in the drawing. Data is still extractable.
Constant
Value is fixed at definition time. No prompt at insertion: every instance carries the same value.
Verify
AutoCAD asks you to confirm the value a second time during insertion. Good for critical data.
Preset
Uses the default value at insertion without prompting. You can still edit it later.

Attributes vs. Plain Text

Block Attribute Plain Text (MTEXT/DTEXT)
Attached to Block ✓ Yes, embedded ✕ No, independent
Prompted on Insert ✓ Automatic ✕ Manual placement
Data Extraction ✓ DATAEXTRACTION ✕ Not natively
Global Editing ✓ Block Editor / BATTMAN ✕ One-by-one
Invisible Option ✓ Mode flag ✕ Not available

How to Create a Block with Attributes

1
Draw geometry. Create the shapes that form the block's appearance (rectangles, lines, circles, etc.).
2
Run ATTDEF. Type ATTDEF and set the Tag, Prompt, Default, and Mode for each attribute you need.
3
Place attribute text. Click to position the attribute definition text inside or near the geometry.
4
Repeat ATTDEF for additional attributes (e.g., ROOM_NAME, ROOM_NUMBER, AREA).
5
Run BLOCK (or -BLOCK). Select all geometry + attribute definitions, specify a base point, and name the block.
6
INSERT the block. AutoCAD prompts you for each attribute value. Fill them in and place.

Example 1: Room Tag Block

CONFERENCE A 101 ROOM_NAME (Tag) ROOM_NUMBER (Tag) Same block, different values "KITCHEN" / "102"
Command: ATTDEF
; Tag: ROOM_NAME, Prompt: Enter room name:, Default: Office
Command: ATTDEF
; Tag: ROOM_NUMBER, Prompt: Enter room number:, Default: 100
Command: BLOCK
; Name: ROOM_TAG, select geometry + attributes, pick base point

Example 2: Title Block with Attributes

COMPANY_NAME Project Title Drawn By Date Scale Acme Engineering PROJECT_TITLE DRAWN_BY DATE SCALE ← Attribute Tags

The Enhanced Attribute Editor

After inserting a block with attributes, double-click the block (or type EATTEDIT) to open the Enhanced Attribute Editor. This dialog has three tabs for modifying individual block instances.

Attribute Tab
Change the value of each attribute tag for this specific instance.
Text Options Tab
Adjust text style, height, rotation, width factor, and justification per attribute.
Properties Tab
Override layer, color, lineweight, and linetype for individual attributes.
Command: EATTEDIT
; Select block → Enhanced Attribute Editor opens
; Or simply double-click any block with attributes

BATTMAN: Global Attribute Manager

While EATTEDIT edits one instance, the Block Attribute Manager (BATTMAN) modifies the attribute definition itself: affecting all current and future instances of that block.

EATTEDIT Edits ONE instance Instance Unchanged vs. BATTMAN Edits ALL instances Updated Updated Choose the right tool for the right scope

Example 3: Editing a Room Tag

You inserted a Room Tag with "Office" and "101", but the room has been redesigned. Use the Enhanced Attribute Editor to update just this one instance.

1
Double-click the room tag block instance in the drawing.
2
The Enhanced Attribute Editor opens. Select the Attribute tab.
3
Click on ROOM_NAME in the list. Change the Value field from "Office" to "Server Room".
4
Click on ROOM_NUMBER. Change from "101" to "101-S".
5
Click OK. Only this instance updates: all other Room Tags remain unchanged.

ATTSYNC and Attribute Order

When you edit a block definition in the Block Editor (adding, removing, or reordering attributes), existing instances may not reflect the changes until you synchronize them.

ATTSYNC
Synchronizes attribute properties (order, modes, prompts) from the definition to all existing instances. Values are preserved.
BATTORDER
Reorders the sequence in which AutoCAD prompts for attribute values during insertion. Run inside the Block Editor.
Command: ATTSYNC
; Select block name → all instances update to match definition
Command: BATTORDER
; Move attributes up/down to set prompt order

Common Mistakes

✕ Forgetting ATTDEF
Drawing text inside a block instead of using ATTDEF. Plain text is not extractable or editable per-instance.
✕ Wrong Attribute Order
Creating attributes in random order. The insertion prompt follows creation order unless you use BATTORDER to fix it.
✕ Skipping ATTSYNC
Editing a block definition but forgetting to run ATTSYNC. Existing instances keep old attribute properties.

Command Summary

Command Purpose Scope
ATTDEF Define a new attribute Block definition
BLOCK / -BLOCK Create block from objects + attributes Block definition
INSERT Place block, fill attribute values Single instance
EATTEDIT Edit attribute values (Enhanced Editor) Single instance
BATTMAN Manage attribute definitions globally All instances
ATTSYNC Sync definition changes to instances All instances
BATTORDER Reorder attribute prompts Block definition
DATAEXTRACTION Export attribute data to table/file Drawing-wide

Question 1 of 5

Which command is used to define an attribute before creating a block?

Question 2 of 5

A block attribute is set to Constant mode. What happens when you insert the block?

Question 3 of 5

You need to change the value of an attribute on a single block instance. Which tool should you use?

Question 4 of 5

You edited a block definition in the Block Editor and added a new attribute. Existing instances do not show the new attribute. What command fixes this?

Question 5 of 5

Which attribute mode makes the data exist inside the block but not display visually in the drawing?