Dimensions don't follow the object: DIMASSOC, associativity and how to reassociate
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:
| Value | New dimension | When the object is moved, stretched or scaled |
|---|---|---|
| 2 (initial) | Associative | The dimension updates by itself |
| 1 | Normal dimension, not associated | The dimension does not change: its measurement stays fixed |
| 0 | Exploded into separate lines, arrowheads and text | Nothing 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
- 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.
- 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.
- The dimension was moved on its own. An associative dimension moved without its geometry is disassociated ("Dimension disassociated") and stays where it is.
- The geometry was deleted: the dimension is disassociated as well.
- 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
- Set
DIMASSOCto 2 if you want new dimensions to be associative (it does not change existing ones). - Type
DIMREASSOCIATE(aliasDRE). - Select the dimensions and press Enter.
- 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.
- 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
| Symptom | Likely cause | What to do |
|---|---|---|
| The dimension does not follow the object | Created with DIMASSOC 1 | DIMREASSOCIATE on the dimensions |
| Some dimensions follow and others do not | Their points did not coincide with a key point | DIMREASSOCIATE with object snaps |
| I changed DIMASSOC and the old ones are the same | The variable only affects new dimensions | DIMREASSOCIATE on the existing ones |
| The dimension was associative and no longer is | It was moved alone or its geometry was deleted | DIMREASSOCIATE |
| The dimension changes when I do not want it to | It is associative and the object changed | DIMDISASSOCIATE, 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.