Sketch constraints
About constraints
A constraint sets a geometric relation between sketch curves and points. For example, Parallel keeps two lines parallel. The sketch solver moves the geometry until all constraints are true.
Constraints and dimensions together decide the shape of a sketch. For dimensions, refer to Sketch dimensions.
The constraint commands are on the Sketch tab, Constrain panel. You can also right-click in the viewport and select a constraint from the Constrain submenu.
Add a constraint
- Click the constraint on the Constrain panel.
- Select the geometry that the prompt asks for.
Meridian adds the constraint when it has all the geometry. The constraint tool stays active. Select more geometry to add the same constraint again. Press Escape to stop.
The constraints
| Constraint | Select | Result |
|---|---|---|
| Coincident | A point, then a second point or a curve. | The points meet, or the point is on the curve. |
| Horizontal | A line, or two points. | The line or the two points are horizontal. |
| Vertical | A line, or two points. | The line or the two points are vertical. |
| Parallel | Two lines. | The lines are parallel. |
| Perpendicular | Two lines. | The lines are at 90 degrees. |
| Tangent | Two curves. | The curves are tangent. |
| Equal | Two lines, or two arcs or circles. | The lines have the same length, or the arcs and circles have the same radius. |
| Concentric | Two arcs or circles. | They have the same center. |
| Midpoint | A point and a line. | The point is at the middle of the line. |
| Fix | The geometry to lock. | The geometry stays where it is. |
| Symmetric | Two points, then the line of symmetry. | The points are symmetric about the line. |
| Collinear | Two lines. | The lines are on one infinite line. |
Automatic constraints
While you draw, the tools add some constraints for you. For example:
- Coincident, Horizontal, Vertical, Tangent and Perpendicular.
- Midpoint, when you snap to the middle of a line.
- Point on curve, when you snap to a curve or to a quadrant.
Some modify tools also add constraints, for example Equal and Symmetric.
The pointer shows the symbol of the constraint before you click.
Hold Ctrl while you draw to switch off the snaps and the automatic constraints.
Meridian does not add an automatic constraint that is redundant or that conflicts. It skips that constraint without a message.
Show and hide the constraint symbols
Click Show Constraints on the Constrain panel. The command switches the constraint symbols on and off. You cannot filter the symbols by type.
When you point to the symbol of a Horizontal or Vertical constraint between two points, a dashed line connects the two points.
Delete a constraint
- Select one curve or point.
- Right-click it. The Constraints submenu lists the constraints of the curve and of its points.
- Click a constraint in the submenu. This selects the constraint.
- Press Delete.
Conflicting and redundant constraints
Meridian checks each constraint before it adds it.
- A constraint that conflicts cannot be true with the other constraints. Meridian does not add it. The prompt tells you which constraint it conflicts with, and the viewport highlights that constraint. Delete one of the two.
- A constraint that is redundant repeats what the geometry already does. Meridian does not add it. The prompt says "The constraint is redundant. The geometry already follows it."
Make Reference
Sometimes a constraint conflicts with a driving dimension. Then the prompt ends with "Delete one of them, or click Make Reference." The prompt names the dimension, and the viewport highlights it.
- Click Make Reference in the tool panel or in the status bar.
- Meridian changes the dimension to a reference dimension and adds the constraint. This is one undo step.
A reference dimension shows the size but does not set it. You cannot change a dimension to a reference dimension if a different parameter uses it.
Degrees of freedom
The status bar shows how many degrees of freedom the sketch has. Each degree of freedom is one way the geometry can still move or change size. When the number is 0, the status bar shows "Fully constrained".
To find what can still move, drag a point or a curve in the viewport. Geometry that constraints hold does not move. A drag does not add horizontal or vertical constraints.
Limits
- There is no curvature (G2) constraint.
- Equal does not make two curves the same length. It works on two lines, or on two arcs or circles.
- Projected geometry is fixed. A constraint cannot move it.