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.
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
Three Core Constraint Types
The Align + Lock Rule
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.
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
How to Apply Constraints
Example: Aligning Walls
Example: Locking a Door Offset
Example: Equality Constraints
Pin vs. Lock: Key Difference
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.
Common Mistakes
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?