Tips & Tricks

Attributes + Dynamic Blocks: One Smart Block Instead of 20 Variants

Combine dynamic block parameters with attributes to create one flexible GstarCAD block that replaces dozens of separate sizes, configurations and labels.

Level
Intermediate
Best for
Doors, equipment, symbols and configurable CAD libraries
Commands
BEDITATTDEFBPARAMETERBACTIONBVSTATEEATTEDITATTSYNC

A good CAD library should not contain dozens of almost identical blocks when one intelligent block can do the same job. Dynamic blocks can control size, orientation and visible geometry, while attributes store editable information such as an ID, type, rating or manufacturer. Combine both techniques and a single block can replace many separate definitions while still carrying different data for every inserted instance. This is one of the most useful ways to build a scalable CAD block library.

What is the difference between dynamic properties and attributes?

The easiest way to understand the combination is to separate behaviour from data.

FeatureControlsExample
Dynamic parameterWhat can change geometricallyDoor width
Dynamic actionHow geometry respondsStretch the door opening
Visibility stateWhich geometry is visibleSolid or glazed door
Flip parameterOrientationLeft-hand or right-hand opening
AttributeInstance-specific informationDoor number, fire rating or specification

A dynamic property changes how the block behaves or looks. An attribute stores information associated with a particular block reference.

If you are not yet familiar with parameters and actions, read our Block Editor vs Dynamic Blocks guide first. It explains how BEDIT, parameters, actions and visibility states work together.

Why combine them in one block?

Imagine an architectural office maintains door blocks in five standard widths:

  • 700 mm,
  • 800 mm,
  • 900 mm,
  • 1000 mm,
  • 1100 mm.

Each door may open left or right, and each may have either a solid or glazed panel representation.

That gives:

5 widths × 2 opening directions × 2 panel types = 20 variants

You could maintain twenty separate block definitions, but that creates unnecessary library management.

A smarter solution is one dynamic block called DOOR.

Which properties should the smart door contain?

The dynamic part of the block can control its physical configuration:

PropertyTechnique
Door widthLinear parameter + Stretch action
Left / right openingFlip parameter + Flip action
Solid / glazed panelVisibility states

The attributes then store information that may be different for every inserted door:

Attribute tagExample value
DOOR_IDD-14
FIRE_RATINGEI30
ROOMOffice 204
TYPEInternal glazed

This distinction is important. The dynamic properties describe the physical version of the block, while the attributes describe the individual object represented by that block.

How do you add attributes to a dynamic block?

Use ATTDEF to create an attribute definition. The most important fields are the tag, prompt and default value.

  1. Open the block with BEDIT.
  2. Run ATTDEF.
  3. Enter a tag such as DOOR_ID.
  4. Enter a prompt such as Enter door number.
  5. Set a default value if appropriate.
  6. Configure the text style, height and position.
  7. Place the attribute inside the block.
  8. Repeat the process for other required attributes.
  9. Save the block definition and close the Block Editor.

The tag is the internal identifier of the attribute. Keep tags clear and consistent because they become particularly useful if the drawing data is later extracted into schedules or tables.

How do you make the geometry dynamic?

Open the same block in BEDIT and add the required dynamic behaviour.

For the door width, add a Linear parameter with BPARAMETER and associate it with a Stretch action using BACTION. The stretch selection should include only the geometry that must move when the width changes.

Add a Flip parameter and action for the opening direction. Then use visibility states to switch between the solid and glazed panel geometry.

Tip

If your company only uses standard door widths, restrict the dynamic block to approved values such as 700, 800, 900, 1000 and 1100 instead of allowing every possible width.

Practical example: configure Door D-14

Insert the smart DOOR block into a floor plan. Instead of searching the library for a specific block definition, configure the inserted reference directly.

  1. Set the width to 900 mm using the dynamic grip or property.
  2. Flip the opening direction to the right.
  3. Select the Glazed visibility state.
  4. Run EATTEDIT and select the door.
  5. Set DOOR_ID to D-14.
  6. Set FIRE_RATING to EI30.
  7. Set ROOM to Office 204.

The drawing still contains the same reusable DOOR block definition, but this particular reference now represents a 900 mm right-hand glazed door with its own project data.

Another reference of exactly the same block could be an 1100 mm left-hand solid door labelled D-15.

What does EATTEDIT change?

EATTEDIT edits the attribute values of a selected block reference. This means you can change information such as D-14 to D-21 without modifying the block definition or changing the attribute values of other doors.

This is exactly what makes attributes useful: the definition provides the fields, but each inserted block can contain its own values.

What happens if you add another attribute later?

Imagine that the block is already used 80 times and you later decide that every door should also contain a MANUFACTURER attribute.

Add the new attribute definition inside BEDIT, save the block and then use ATTSYNC to synchronise existing references with the updated block definition.

Use ATTSYNC carefully

ATTSYNC synchronises existing attribute references with the block definition, but it can also remove individual attribute formatting or property changes and may affect dynamic or third-party blocks. Test the updated block first and keep a safe copy of an important drawing before synchronising a large number of references.

When is a smart block worth the extra setup?

Combining attributes and dynamic behaviour takes longer to build than creating a basic block, so it is most valuable for objects that appear frequently and have predictable variations.

Doors, windows, furniture, equipment, electrical symbols and mechanical components are excellent candidates. Instead of maintaining twenty nearly identical definitions, you maintain one well-tested smart block.

The key principle is simple: use dynamic properties for geometry and configuration, and use attributes for information. When those two systems are combined properly, a block becomes more than reusable geometry — it becomes a configurable CAD object that can represent many real project components from a single definition.

All tips Updated 30 October 2026
Continue learning
View all tips

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.