cadblockdwg

How-to guide · how to add a visibility state to a dynamic block

How to add a visibility state to a dynamic block in AutoCAD

DWGDXFFree1,058 words

By Sumana Kumar · Published 19 Jun 2022 · Updated 26 Apr 2024

A visibility state lets a single block hold several different versions of itself and show only one at a time, chosen from a small dropdown grip. It is the cleanest way to collapse a folder of near-identical blocks — a chair seen in plan and in elevation, a door drawn as left-hung and right-hung, a fitting in three trim levels — into one definition. The geometry for every variant lives inside the block; the visibility state simply turns sets of it on and off.

Unlike a stretch or a flip, a visibility state does not move or transform anything. It hides and reveals. That makes it the right tool when the variants are genuinely different drawings rather than the same drawing resized. You draw all the versions once, stacked in the same block, then carve them into named states.

This guide adds visibility states to a block from the ground up, including the small but important step of choosing which objects belong to which state. Done well, the result is a block a colleague can use without ever opening the Block Editor — they just pick a name from the list.

Step 1 — Get all your variants into one block

Open the block in the Block Editor with BEDIT. Before you add any visibility logic, make sure every version you want to switch between is actually inside this block, drawn on top of or beside each other. If you are combining a plan and an elevation, paste both into the editor; if you are holding three sizes, draw or copy all three.

It is fine for the variants to overlap or sit on top of one another in the editor — the visibility state will hide the ones you are not using, so the visual clutter while authoring does not matter. Keep them on sensible layers so colour and lineweight carry through to each state.

Step 2 — Add the Visibility parameter

On the Block Authoring Palettes, open the Parameters tab and click Visibility. AutoCAD asks for a location for the parameter grip — pick a spot near the block where the dropdown arrow should appear, typically just outside the geometry so it is easy to click. Only one Visibility parameter is allowed per block, which is why it controls the whole block rather than a region.

As soon as you place it, the Block Editor's Visibility panel on the ribbon comes alive: a state name dropdown and three buttons for making objects visible, invisible, and managing the list of states. You are now in visibility-authoring mode.

Step 3 — Create and name your states

Click Visibility States (or run BVSTATE) to open the manager. Rename the default state to something meaningful — Plan, or Left Hung, or Standard — then add a new state for each variant with the New button. When you create a new state you can choose to hide all existing geometry, leave it visible, or leave it unchanged; hiding everything and then revealing only what belongs gives you the cleanest result.

Give every state a clear, human name, because that name is exactly what appears in the dropdown the end user sees. Vague names like State1 and State2 defeat the purpose of the feature.

Step 4 — Set which objects show in each state

Pick a state from the dropdown on the ribbon. Select the geometry that should belong to that state and click Make Visible; select geometry that should be hidden and click Make Invisible. By default invisible objects are hidden entirely, but there is a toggle to show them dimmed while authoring so you can still grab them — that is purely an editing aid and does not affect the finished block.

Work through every state in turn. The most common slip is leaving a stray line visible in two states, so it never disappears. Switch through each state after you set them and confirm only the right geometry shows.

Step 5 — Test, save and use the dropdown

Run Test Block (BTESTBLOCK) and click the small dropdown grip. The list of state names appears; choosing each should swap the geometry instantly with nothing left behind. If a variant shows extra lines, return to that state and make them invisible.

Save the block and close the editor. In the drawing, every instance now carries the dropdown grip. A user clicks it, picks Plan or Elevation or whichever size, and the block changes with no exploding, no re-inserting and no separate files. The state choice is stored per instance, so two copies of the same block can sit on the page showing different variants.

When to use visibility instead of other parameters

Reach for visibility states when the variants are fundamentally different drawings rather than scaled versions of one. A door that needs left-hung and right-hung leaves is better served by a Flip; a table that needs a range of lengths is better served by a Linear stretch or a Lookup; but a fitting that needs to appear as a symbol, a detailed plan, or an elevation is exactly what visibility is for.

You can combine visibility with other parameters — a block can have a visibility dropdown to pick the type and a separate stretch grip to size it — but keep the logic legible. If a block ends up with a dozen states and several stretches, splitting it into two blocks is often kinder to whoever uses it next.

Free download

Browse the full library — DWG & DXF, no signup.

Download CAD blocks

Questions

Frequently asked

How many visibility states can one block have?+

You can create many states under a single Visibility parameter, but only one Visibility parameter is allowed per block. Each state is just a named on/off arrangement of the block's geometry.

Why does some geometry show in every state no matter what?+

That geometry was never set invisible in those states. Switch to each state in turn, select the unwanted objects, and click Make Invisible until only the intended geometry remains.

Can I edit invisible objects later?+

Yes. In the Block Editor, toggle the option to display hidden objects dimmed. You can then select and edit them, set their visibility per state, and re-hide them when finished.

Does each inserted copy remember its own state?+

Yes. The chosen visibility state is stored on the individual block reference, so two copies of the same block can display different states in the same drawing.

Related downloads

Blocks for this guide

Popular blocks to download

Related categories

Related guides