Stratal CAD

Constraints on drawing objects

Help centre · Drawing and editing

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

Steps: add a geometric constraint

  1. Click Annotate > Constraints > GEOMCONSTRAINT (GEOMCONSTRAINT, alias GCON).
  2. At Constraint [Horizontal/Vertical/Perpendicular/Parallel/Tangent/Coincident/Concentric/Equal/Fix/Collinear/Symmetric/Smooth] <Horizontal> choose a kind.
  3. 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

  1. Click Annotate > Constraints > DIMCONSTRAINT (DIMCONSTRAINT, alias DCON).
  2. 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.
  3. Type the value, or press Enter to keep the size it has. An expression such as width / 2 binds it to the drawing's parameters, so changing the parameter with PARAM changes it.
  4. The constraint gets a name: d1, rad1, dia1, ang1 and so on.

How constrained objects behave

Steps: list, change and remove constraints

  1. Type CONSTRAINTS. At Constraints [List/Value/Delete] <done>:
    • List shows every constraint.
    • Value changes a dimension's value or expression, by its name or number.
    • Delete removes one.
  2. DELCONSTRAINT removes every constraint on the selected objects. Erasing an object removes its constraints with it.
  3. AUTOCONSTRAIN adds 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

Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.