BIM

How to edit a block in AutoCAD: three routes, and where the work gets lost

To edit a block in AutoCAD you have three routes: BEDIT, redefining by hand, and REFEDIT. Covers saving with BSAVE, closing with BCLOSE, and attributes.

  • TS. Đỗ Quốc Hoàng
  • 12 min read
Three ways to edit a block already in the drawing, all ending the same way as every insertion updates Photo: Diagram by the Institute of Information Technology in Civil Engineering

To edit a block in AutoCAD you change the block definition, not the individual insertions. Change it once and every insertion of that block follows, however far they are scattered through the drawing set. Autodesk sums up the tool for the job in one sentence — "The Block Editor provides the easiest way to modify a block in the current drawing". See the page About Modifying Block Definitions.

This article deals only with editing. If you still need the groundwork — what a block is, how to make one, how to insert it, and why the geometry belongs on layer 0 — read blocks in AutoCAD first. For the whole drafting and documentation workflow, see the AutoCAD for Construction course.

Three routes, and which one to take

All three routes below reach the same result. What differs is how much of the drawing you can see while you work, and how many steps it takes.

RouteCommandBest for
The block editorBEDITChanging the block's geometry, and building dynamic blocks. This is the everyday route
Redefining by handEXPLODE then BLOCKOne quick detail, without opening a separate editor
Editing in placeREFEDITWhen you need the surrounding drawing visible while you work

The first is the one worth making automatic. The other two have their own uses, covered further down.

The block editor in AutoCAD: BEDIT and its own space

Type BEDIT and press Enter. The Edit Block Definition dialog appears, listing every block defined in the drawing.

The Edit Block Definition dialog Photo: The Edit Block Definition dialog listing every block in the drawing, with the Preview and Description panes on the right

Autodesk describes the first field precisely on the Edit Block Definition Dialog Box page. The Block to create or edit field takes the name of the block you want, and if you pick <Current Drawing> then "the current drawing is opened in the Block Editor". The Preview pane shows the block, along with one detail worth remembering — "A lightning bolt icon indicates that the block is a dynamic block". A lightning bolt tells you the block carries parameters you can change after insertion.

Pick a block and click OK. The screen switches to a space of its own.

Inside the block editor Photo: The block editor with a door block open: a grey background, only the block's own geometry, and the UCS icon sitting exactly on the insertion point at the hinge

Three signs tell you where you are. The background turns grey. Only the block's own geometry remains on screen and the rest of the drawing disappears. The origin moves to the block's insertion point, so the hinge of a door block sits right on it.

There is a way to check by machine as well. The system variable BLOCKEDITOR takes only two values, and Autodesk describes it as "Indicates whether or not the Block Editor is open" — 0 when closed, 1 when open. The details are on the BLOCKEDITOR page.

The ribbon changes to a tab of its own too.

The Block Editor ribbon tab Photo: The Block Editor tab cut into two halves, from the Open/Save panel on the left through to the Close Block Editor button at the far right

The two buttons that matter sit at opposite ends of the tab. Save Block is in the Open/Save panel on the left. Close Block Editor is in the Close panel at the far right.

Save with BSAVE, close with BCLOSE, and where the work goes

This is where the work is most often lost, and it is also the step most online guides skip entirely. Both commands are so quiet it is easy to think nothing has happened.

BSAVE saves the block definition. Having saved, it prints nothing at all on the command line. BCLOSE shuts the editor and returns you to the drawing, printing exactly one line.

```

Regenerating model.

```

The awkward habit lies here. When you have unsaved changes, BCLOSE asks whether to save them. When you have changed nothing, it simply closes and asks nothing at all.

Save first, close second Photo: Two sequences side by side: the left saves with BSAVE before closing, the right clicks close straight away and loses the editing

So seeing no question does not mean the work was saved. It means AutoCAD found nothing to save. Reach for Close Block Editor out of habit without running BSAVE first and the editing is gone, with the block exactly as it was.

How to edit a block in AutoCAD by redefining it

The second route needs no separate editor. It has three steps.

First, type EXPLODE and pick one insertion of the block. That insertion breaks back into loose geometry, while the block definition stays in the drawing and the other insertions are untouched.

Second, edit the loose geometry.

Third, type BLOCK and give it exactly the old name. AutoCAD asks Redefine it?, you answer Yes, and every insertion follows.

This route is quick for one small detail. The risk is in the third step: mistype a single character in the name and you create a second block rather than editing the first. One more limit comes from Autodesk — a block whose Allow exploding box is cleared refuses EXPLODE, so this route is closed for locked blocks.

Editing in place with REFEDIT when context matters

Editing a door sometimes means seeing the wall it sits in. The block editor hides everything else, so it cannot help with that. REFEDIT exists for exactly this case.

Autodesk explains the mechanism on About Editing Selected Objects in Referenced Drawings and Blocks. The block's geometry is pulled out temporarily into a working set"The set of extracted objects is called the working set, which can be modified and then saved back to update the xref or block definition". Objects in that set are drawn differently from the rest of the drawing, so you can tell them apart.

The Reference Edit dialog has two tabs. Identify Reference selects the block and decides whether nested blocks come along. Settings carries one option worth turning on, Lock objects not in working set, which locks everything outside the set so you cannot edit the host drawing by accident.

When you are done, write the changes back with REFCLOSE. Same block, same outcome: change the definition and every insertion changes.

Edit block attributes in AutoCAD: one value or the definition

Once a block carries attributes, editing splits into two clearly separate jobs, and picking the wrong one wastes time. Editing a value changes the text shown on one insertion. Editing the definition changes the attribute field itself for the whole block.

One value or the whole definition Photo: Two branches side by side: on the left editing one insertion's value, on the right editing the attribute definition for the whole block

The simplest way into the value branch is to double-click the block, or type EATTEDIT.

The Enhanced Attribute Editor Photo: The Enhanced Attribute Editor with its three tabs, Attribute, Text Options and Properties, above a three-column table of Tag, Prompt and Value

The Enhanced Attribute Editor has three tabs. The Attribute tab shows the three-column table, and Autodesk states its limit plainly — "You can change only the attribute value". The Tag and Prompt columns belong to the block definition, so they cannot be touched here. Text Options handles height and justification, Properties handles layer, colour and lineweight. The Apply button "Updates the drawing with the attribute changes you have made, and leaves the Enhanced Attribute Editor open".

The definition branch uses BATTMAN.

The Block Attribute Manager Photo: The Block Attribute Manager with its Sync button, the Move Up and Move Down buttons, and the two lines counting insertions found

This dialog changes the Tag, changes the Prompt, and reorders the prompts with Move Up and Move Down. Two lines at the foot count the insertions found: one for the whole drawing, one for the current space.

The button that matters most is Sync, and Autodesk's wording on the Block Attribute Manager page repays careful reading. It "Updates all instances of the selected block with the attribute properties currently defined", and the sentence straight after settles a common worry — "This does not affect any values assigned to attributes in each block". Synchronising the definition does not wipe the numbers already entered.

The ATTSYNC command does the same job from the command line, and Autodesk summarises it as "Applies attribute changes in a block definition to all block references". Change the definition with BATTMAN but skip the sync, and the existing insertions keep asking the old questions.

Three cases where a block does not update

"Change the definition and every insertion follows" holds inside one drawing. Autodesk names three places where it stops holding.

First, a block edited in some other drawing means nothing to yours. Autodesk writes plainly that to pick up a block updated elsewhere "you must reinsert it".

Second, a definition created by inserting a whole DWG file into your drawing does not refresh either — "Block definitions created in your current drawing by inserting a drawing file are not updated automatically".

Third, dragging a block across from DesignCenter does not overwrite what is already there: "Inserting a block using DesignCenter does not overwrite an existing block definition".

One more point is regularly misread. Erasing every insertion does not remove the definition — "The block definition remains in the drawing, even when all references to that block are erased". Clearing it out takes PURGE. Layer housekeeping and drawing clean-up are covered in more depth in layers in AutoCAD.

When to build a dynamic block instead

If you keep reopening the same block only to change a dimension, consider making it dynamic instead. A dynamic block carries parameters you can change after insertion, so one dynamic door block replaces a whole family of fixed ones.

The Block Authoring Palettes Photo: The two working tabs of the Block Authoring Palettes: Parameters on the left and Actions on the right

The tools sit on the Block Authoring Palettes, which appears as soon as you enter the block editor. The Parameters tab holds the kinds of parameter available, and the Actions tab holds the operations a parameter can drive.

One point is worth knowing early, because it trips up most beginners. Adding a parameter alone already makes the block dynamic, but the number then changes while the geometry stays put. A parameter is the thing that measures; an action is the thing that moves the geometry. You need both halves of the pair.

Dynamic blocks take time to build and are awkward to maintain, so they earn their keep only on blocks used hundreds of times. For a component used two or three times, an ordinary block is faster. To go further into this group of tools, see the advanced AutoCAD course.

Frequently asked questions

I edited the block but the other insertions did not change. Why?

The likeliest reason is that you never saved. Type BSAVE before closing the block editor. The second possibility is that you redefined with BLOCK but mistyped the name, which creates a new block rather than editing the old one.

What opens when I double-click a block?

It depends on the block. A plain block opens the Edit Block Definition dialog on the way into the block editor. A block with attributes opens the Enhanced Attribute Editor so you can change the value on the insertion you clicked.

I changed the Prompt with BATTMAN but inserting still asks the old question.

The sync step is missing. Click Sync in the dialog, or type ATTSYNC and pick the block. This does not disturb values already entered on the existing insertions.

How do I edit a block that will not explode?

Use BEDIT. The Allow exploding setting only blocks the EXPLODE command, not the block editor, so it is the redefine-by-hand route that is closed to you.

Should I use BEDIT or REFEDIT?

Use BEDIT for almost everything. Switch to REFEDIT only when you need the surrounding drawing visible, for instance when aligning a symbol against wall geometry that is already drawn.

About the author

TS. Đỗ Quốc Hoàng — Vice Director of the Institute of Information Technology in Civil Engineering, Hanoi University of Civil Engineering, and a specialist in software development for construction