Tie the drawing's own lines, arcs, circles, polylines, ellipses and points together with geometric and dimensional constraints, so edits keep them parallel, tangent, equal or at a set size. For setting out and designs that must stay consistent.
Before you start
- Stratal Draft or above (2D drafting).
- Annotate > Constraints has GEOMCONSTRAINT and DIMCONSTRAINT. CONSTRAINTS, AUTOCONSTRAIN and DELCONSTRAINT are typed or found with command search. (Sketches have their own constraints on the Sketch tab.)
Steps: add a geometric constraint
- Click Annotate > Constraints > GEOMCONSTRAINT (
GEOMCONSTRAINT, aliasGCON). - At
Constraint [Horizontal/Vertical/Perpendicular/Parallel/Tangent/Coincident/Concentric/Equal/Fix/Collinear/Symmetric/Smooth] <Horizontal>choose a kind. - Pick the objects the prompts ask for. Where two objects are involved, the second adjusts to the first.
Geometric constraints
| Constraint | Picks | Effect |
|---|---|---|
| Horizontal / Vertical | A line (or an ellipse's major axis) | Made level or upright. |
| Parallel / Perpendicular | Two lines | The second turns to match. |
| Tangent | Two curves, or a line and a curve | Touch smoothly. A line, circle or arc can be tangent to an ellipse. |
| Equal | Two lines or two curves | Same length or radius. |
| Concentric | Two arcs, circles or ellipses | Same centre. |
| Coincident | Two points (click near an end or a centre) | The second moves to the first. |
| Fix | A point (near an end or a centre), or an object | The point stays where it is; a fixed object cannot be edited until the constraint is removed. |
| Collinear | Two lines | The second moves onto the first's line. |
| Symmetric | Two points or two arcs or circles, then the line of symmetry | The second moves to the first's mirror image; two curves also get the same radius. |
| Smooth | The end of a line or arc, then the end of an open spline with fit points | The spline's end moves there and leaves along the curve. |
Steps: add a dimensional constraint
- Click Annotate > Constraints > DIMCONSTRAINT (
DIMCONSTRAINT, aliasDCON). - At
Dimension [Aligned/Horizontal/Vertical/Radial/Diameter/Angular] <Aligned>choose a kind:- Aligned: two points, or a line then Enter for its length.
- Horizontal / Vertical: two points.
- Radial / Diameter: an arc or a circle.
- Angular: two lines.
- Type the value, or press Enter to keep the size it has. An expression such as
width / 2binds it to the drawing's parameters, so changing the parameter with PARAM changes it. - The constraint gets a name:
d1,rad1,dia1,ang1and so on.
How constrained objects behave
- Editing a constrained object (MOVE, grips, STRETCH and others) moves the others of its group so every constraint still holds, in the same undo step. While you drag a grip, the objects constrained with it follow in the preview.
- A change they cannot follow is refused with the constraints it would break, and nothing moves.
- The solver moves objects as little as it can, so a new constraint on one object (a length, horizontal) may move both of its ends.
- Polylines count as their segments and vertices: click a straight segment where a line is wanted and near a vertex where a point is. Arc segments take Tangent, Radius, Diameter, Equal and Concentric and stay arcs between their vertices. Adding or removing vertices renumbers the constraints; those on what was removed go with it. CONSTRAINTS shows them as, for example, "segment 3".
- An ellipse can be Horizontal or Vertical, Concentric, Fixed, and its centre is a point; it moves and turns whole, keeping its size and shape.
Steps: list, change and remove constraints
- Type
CONSTRAINTS. AtConstraints [List/Value/Delete] <done>:- List shows every constraint.
- Value changes a dimension's value or expression, by its name or number.
- Delete removes one.
DELCONSTRAINTremoves every constraint on the selected objects. Erasing an object removes its constraints with it.AUTOCONSTRAINadds Coincident where ends of the selected objects meet and Horizontal or Vertical to lines within half a degree of it.
What you see
The 2D view marks each constrained object with a short glyph per constraint, stacked when there are several: H, V, //
(parallel), | (perpendicular), T, =, Cc (concentric), C (coincident), F (fix), CL (collinear), S (symmetric), and a
dimension's name and value (d1=100, rad1=width=10, ang1=30°) at its first object. Constraints are saved with the
drawing.
Example
Draw a rectangle with four lines. Run AUTOCONSTRAIN on them: the corners become coincident and the sides horizontal
and vertical. Add DIMCONSTRAINT Aligned on the bottom line with width and on a side with 600. Now
PARAM width 1200 resizes the rectangle and it stays square-cornered.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "Select a line, arc, circle, point, polyline, ellipse or block reference." | That object cannot be constrained. |
| "Symmetric takes two points (or two arcs or circles) and a line to mirror them about." | Pick in that order. |
| "Smooth takes an end of a line or an arc, then an end of an open spline with fit points." | Pick the line or arc first. |
| "the constraints cannot follow this change: …" | The edit would break a constraint, so nothing moved. Remove or change a constraint first. |
| ""<text>" has no value: …" | The expression uses a parameter the drawing does not have. Check PARAM. |
| "That constraint is not a dimension." | Value works only on dimensional constraints. |
| "No new constraints: no ends meet and no line is horizontal or vertical." | AUTOCONSTRAIN found nothing to add. |
| "No constraint solver is attached: objects do not follow their constraints here." | This build has no solver; constraints are kept but not applied. |
Related
Related
- Fitting an object into a space
- Grid, snap, ortho and polar tracking
- Object snaps and object snap tracking
- Entering exact points, distances and angles
- Constraint hints while drawing
- Drawing lines
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.