Skip to content

← Blog

Dimensions don't follow the object: DIMASSOC, associativity and how to reassociate

· Guides

You stretch a wall with STRETCH and the dimension that measured it still shows the old value. Or the other way round: you edit a line and the dimension changes value when you did not want it to. In both cases the drawing is usually fine; what decides whether a dimension follows its object is associativity, controlled by the DIMASSOC variable. This is what it does in LinceCAD 1.0.2 (AutoCAD works on the same principle).

What DIMASSOC 0, 1 and 2 mean

It only affects dimensions created after you change it:

ValueNew dimensionWhen the object is moved, stretched or scaled
2 (initial)AssociativeThe dimension updates by itself
1Normal dimension, not associatedThe dimension does not change: its measurement stays fixed
0Exploded into separate lines, arrowheads and textNothing updates, and it is no longer edited as a dimension

The variable is saved with the drawing. Change it by typing DIMASSOC and the value (only 0, 1 and 2 are accepted), with SETVAR, or from AutoLISP with (setvar "DIMASSOC" 1).

Why a dimension stops following the object

  1. It was created with DIMASSOC 0 or 1. The most common cause in your own drawings: someone changed the variable to dimension "by hand" and did not set it back to 2.
  2. Its points were not on a key point. With DIMASSOC 2, LinceCAD associates the dimension to the geometry when its points coincide with the endpoint, midpoint, center, quadrant, node or polyline vertex. A point at the intersection of two objects, or a nearby point, does not associate the dimension.
  3. The dimension was moved on its own. An associative dimension moved without its geometry is disassociated ("Dimension disassociated") and stays where it is.
  4. The geometry was deleted: the dimension is disassociated as well.
  5. It was exploded, or the drawing does not carry it as associative. An exploded dimension (separate lines, arrowheads and text) is no longer a dimension. Associative dimensions in an AutoCAD DWG stay associative in LinceCAD, and the other way round: the association is stored in the drawing itself, as AutoCAD does.

How to check whether a dimension is associative

Move the object and see whether the dimension follows. With DIMASSOC at 2 and the dimension associated, when you move, stretch, scale or grip-edit the line, arc or polyline, the dimension moves and changes value. If it does not, go through the list above. When you disassociate or reassociate, the command line tells you how many dimensions changed.

How to fix it: DIMREASSOCIATE

  1. Set DIMASSOC to 2 if you want new dimensions to be associative (it does not change existing ones).
  2. Type DIMREASSOCIATE (alias DRE).
  3. Select the dimensions and press Enter.
  4. For each definition point of the dimension, specify the point again with an object snap (endpoint, midpoint, center…) on the object, or press Enter to leave it as it is.
  5. The dimension is associated to the geometry at those points and follows it when moved or stretched.

The key is to specify the point with an object snap: that is what lets LinceCAD know which object to associate with.

And if you want the opposite

If a dimension changes value when you do not want it to, you can freeze it: DIMDISASSOCIATE (alias DDA) removes associativity from the selected dimensions, which stop following the geometry and stay where they are. For new dimensions, DIMASSOC 1. DIMREASSOCIATE associates them again afterwards.

Summary

SymptomLikely causeWhat to do
The dimension does not follow the objectCreated with DIMASSOC 1DIMREASSOCIATE on the dimensions
Some dimensions follow and others do notTheir points did not coincide with a key pointDIMREASSOCIATE with object snaps
I changed DIMASSOC and the old ones are the sameThe variable only affects new dimensionsDIMREASSOCIATE on the existing ones
The dimension was associative and no longer isIt was moved alone or its geometry was deletedDIMREASSOCIATE
The dimension changes when I do not want it toIt is associative and the object changedDIMDISASSOCIATE, or DIMASSOC 1 for new ones

This article sticks to what LinceCAD 1.0.2 does with dimension associativity; the manual guide to dimensions, leaders and annotation scales covers the rest.

If you are coming from AutoCAD and considering a switch, associativity is one of the points on the AutoCAD-compatible CAD checklist. Before you decide, see where DWG compatibility has limits and who LinceCAD is for and who it is not for.

Frequently asked questions

What is DIMASSOC?

It is the variable that decides how new dimensions are created: with 2 they are associative and follow the object they measure; with 1 they are normal dimensions with a fixed measurement; with 0 they are exploded into separate lines, arrowheads and text. Its initial value is 2 and it is saved with the drawing.

Why does my dimension not follow the object when I stretch it?

Because the dimension is not associative: it was created with DIMASSOC 0 or 1, its points did not coincide with a key point of the object (endpoint, midpoint, center, quadrant, node), it was moved on its own, or the geometry it was associated with was deleted.

Does setting DIMASSOC to 2 fix the dimensions I already have?

No. The variable only affects dimensions created afterwards. For existing ones use DIMREASSOCIATE, which asks for the reference points again.

How do I keep a dimension at a fixed value?

DIMDISASSOCIATE removes associativity from the selected dimensions: they stay where they are and no longer change when the object is edited. For new dimensions, use DIMASSOC 1.

Try LinceCAD for 30 days with your own drawings and dimensions. Download · See pricing · DIMASSOC in the manual.