01 / 21

Using Constraints
in Autodesk Revit

Learn how to use align, lock, and dimensional constraints to control model behavior and maintain design intent as your project evolves.

CAD Software

What Are Constraints?

In Revit, a constraint is a rule you apply to model elements that controls their position, alignment, or distance relative to other elements. Constraints ensure that when one element moves, related elements adjust automatically: maintaining your design intent without manual correction.

Why Constraints Matter

✓ Design Intent
Constraints preserve the architect's intended relationships: walls stay parallel, doors stay centered, and dimensions hold.
✓ Efficiency
Move one element and all constrained elements follow. No need to manually reposition dozens of objects each time you revise.
✓ Error Prevention
Locked constraints prevent accidental changes. The model itself resists moves that would break your rules.

Three Core Constraint Types

Align Forces elements to share an edge Lock Prevents relative movement Dimension
\(3000\)
Maintains exact distance between

The Align + Lock Rule

1. Align Tool (AL shortcut) 2. Pick Target Reference edge 3. Pick Mover Element to align 4. Click the Lock Icon Makes alignment permanent

Dimensional Constraints

When you place a dimension in Revit and then lock it, that dimension becomes a constraint. The distance is now enforced: if you try to move either element, Revit will maintain the locked value or warn you of a conflict.

Wall A Wall B
\(5000\text{ mm}\)
Locked dimension: distance is enforced

Align vs. Dimension Constraints

Align + Lock Locked Dimension
What it controls Colinearity / flush edges Exact distance between elements
Value stored None (zero offset) Numeric value (e.g. \(3000 \text{ mm}\))
Best for Keeping faces flush Maintaining clearances
When to use Walls sharing a face, curtain wall alignment Room widths, door offsets, setbacks
Lock required? Yes to persist Yes to persist

How Constraints Respond to Edits

BEFORE MOVE
\(2000\text{ mm}\)
A B Move A AFTER MOVE
\(2000\text{ mm}\)
A B
Wall B follows Wall A to maintain the locked
distance of \(2000\text{ mm}\)

How to Apply Constraints

1
Select the tool: Use Align (AL), or place a Dimension (DI) from the Annotate tab.
2
Pick the reference: Click the element or edge that should stay fixed (the "target").
3
Pick the mover: Click the element that should move to align or be measured against.
4
Click the lock icon: A padlock appears near the constraint. Click it to lock. Without this step, the constraint is temporary.
5
Test it: Try moving one element. The other should follow or Revit should display a constraint warning.

Example: Aligning Walls

Exterior Wall (Target) Interior wall (before: offset) Aligned Locked Interior wall top face is aligned and locked to the exterior wall top face

Example: Locking a Door Offset

Wall Door
\(900\text{ mm}\)
The door stays exactly \(900\text{ mm}\) from the wall end
even if the wall is stretched or relocated

Example: Equality Constraints

Col 1 Col 2 Col 3 EQ EQ EQ constraint: columns stay evenly spaced

Pin vs. Lock: Key Difference

Pin
Anchors a single element to its current position. It cannot be moved or rotated until unpinned. Does not create a relationship between elements.
Lock (Constraint)
Creates a relationship between two or more elements. They move together. A locked dimension enforces a distance; a locked alignment enforces colinearity.

Constraint Warnings

When an edit would violate a constraint, Revit shows a warning dialog. You have three options: undo the edit, remove the constraint, or flex the model (let Revit resolve it automatically). Understanding these warnings is essential.

✕ "Constraints not satisfied"
Multiple locked constraints conflict. One must be removed or the edit undone.
★ "Would break constraint"
Your edit directly contradicts a lock. Choose to remove the constraint or cancel the operation.
✓ "Element moved by constraint"
A dependent element shifted automatically. This is expected: the constraint is working.

Common Mistakes

✕ Forgetting to Lock
Using Align without clicking the lock icon only snaps elements once. The relationship is not persistent and elements will drift apart on the next edit.
✕ Over-Constraining
Locking too many dimensions creates contradictory rules. When you edit, Revit cannot satisfy all constraints and throws errors. Keep constraints minimal and intentional.
✕ Confusing Pin with Lock
Pinning an element freezes it in place but does not link it to others. If a related wall moves, a pinned element stays behind instead of following.

Constraint Summary

Feature Align + Lock Locked Dimension Pin
Type Relational Relational Positional
Controls Edge alignment Distance Fixed position
Elements involved 2+ 2+ 1
Survives edits? Yes (if locked) Yes (if locked) Yes
Can over-constrain? Yes Yes No
Shortcut AL DI PN

Question 1 of 5

What happens when you use the Align tool without clicking the lock icon?

Question 2 of 5

You have a locked dimension of \(3000 \text{ mm}\) between Wall A and Wall B. What happens if you move Wall A to the right by \(500 \text{ mm}\)?

Question 3 of 5

What is the key difference between pinning an element and locking a constraint?

Question 4 of 5

You see a "Constraints not satisfied" warning. What is the most likely cause?

Question 5 of 5

What does the EQ toggle do when applied to a dimension string spanning multiple columns?