Help Open SchoolCAD

Help Sketching

Constraints

Rules that hold a sketch in shape, such as horizontal, parallel, equal or tangent, so it stays right when sizes change.

  • Tie loose endsSketch toolbar
  • Auto-constrainSketch toolbar
  • •CoincidentSketch toolbar: constraints
  • HHorizontalSketch toolbar: constraints
  • VVerticalSketch toolbar: constraints
  • ∥ParallelSketch toolbar: constraints
  • ⊥PerpendicularSketch toolbar: constraints
  • =EqualSketch toolbar: constraints
  • MMidpointSketch toolbar: constraints
  • TTangentSketch toolbar: constraints
  • ◎ConcentricSketch toolbar: constraints
  • ⋯CollinearSketch toolbar: constraints
  • ⇹SymmetricSketch toolbar: constraints
  • ⚓FixSketch toolbar: constraints
What other CAD programs call it
SchoolCADOnshapeFusionSOLIDWORKS
Tie loose endsCoincident (open ends)CoincidentRepair Sketch
Auto-constrainInferencesAutoConstrainFully Define Sketch
CoincidentCoincidentCoincidentCoincident
Collinear
Coradial
HorizontalHorizontalHorizontal/VerticalHorizontal
VerticalVerticalHorizontal/VerticalVertical
ParallelParallelParallelParallel
PerpendicularPerpendicularPerpendicularPerpendicular
EqualEqualEqualEqual
MidpointMidpointMidpointMidpoint
TangentTangentTangentTangent
ConcentricConcentricConcentricConcentric
CollinearCoincident (two lines)CollinearCollinear
SymmetricSymmetricSymmetrySymmetric
FixFixFix/UnfixFix

A constraint is a rule about how lines, circles and points sit together: this line is horizontal, these two lines are the same length, this point is in the middle of that line. A dimension sets a size; a constraint sets a relationship. (SOLIDWORKS calls constraints relations.) Together they make a sketch fully defined, so it keeps its shape when you change a size.

How to use it#

  1. With Select, click the first thing, then Shift-click the others.
  2. Click the constraint in the sketch toolbar. The constraint buttons are the small symbols •, H, V, ∥, ⊥, =, M, T, ◎, ⇹ and ⚓. Hover over one to see its name and what to select.

A button stays grey until what you have selected fits it. Most constraints then show as a small symbol by the line, such as H. Coincident and Concentric show no symbol: the points simply sit together.

The twelve constraints#

ConstraintSelectWhat it does
• CoincidentTwo points, or a point and a line, or a point and a circle or arc, or two linesJoins the two points into one, or puts the point on the line or curve. Two lines go in line with each other, as parts of one straight line (Onshape: Coincident · SOLIDWORKS: Collinear): they get ∥ and an end on the other's line. Two arcs or circles go on one circle, the same centre and size (SOLIDWORKS: Coradial).
H HorizontalOne or more lines, or two pointsMakes each line level, or puts the two points level with each other.
V VerticalOne or more lines, or two pointsMakes each line upright, or puts one point straight above the other.
∥ ParallelTwo linesMakes the lines run the same way, like railway tracks.
⊥ PerpendicularTwo linesPuts the lines at a right angle (90°) to each other.
= EqualTwo or more lines, or two or more circles or arcsMakes the lines the same length, or the circles and arcs the same size.
M MidpointA point and a linePuts the point in the middle of the line.
T TangentA line and a circle or arc, two circles or arcs, or a line, circle or arc and an ellipseMakes them touch smoothly, without a corner.
◎ ConcentricTwo or more circles or arcs, or one circle or arc and a pointGives them the same centre, like a washer, or puts the point on the centre.
⋯ CollinearTwo or more linesPuts the lines in line with each other, as parts of one straight line (Fusion and SOLIDWORKS: Collinear). Coincident on two lines does the same.
⇹ SymmetricTwo points and a linePuts the points the same distance either side of the line, like mirror images.
⚓ FixOne or more pointsPins the points where they are now.

Constraints added for you#

SchoolCAD adds many constraints as you draw:

  • A line drawn nearly level or upright gets H or V.
  • A line or shape that starts on a point is joined to it, and one that starts on a line stays on that line.
  • A rectangle's sides stay horizontal and vertical (an aligned rectangle's stay at right angles), a polygon's sides stay equal, and a slot's ends stay tangent and equal.
  • A tangent arc and a sketch fillet stay tangent to their lines.
  • Mirror and Pattern tie their copies to the originals.

Auto-constrain and Tie loose ends#

Two buttons beside the constraints (in Constraints ▾ on a narrow screen, or ` Search tools) do the fiddly part for you:

  • Auto-constrain adds H or V to lines that are nearly level or upright, joins ends that nearly meet, and makes a line and an arc that leave a corner the same way T tangent. It only adds what the sketch nearly has already, so nothing jumps. Then add the dimensions it still needs (SOLIDWORKS: Fully Define Sketch · Fusion: AutoConstrain).
  • Tie loose ends joins line ends that stop just short of each other, or just short of a line or arc, so the shape closes and can be extruded. Use it when a sketch says it has a gap. Ends that are far apart are left for you to draw the missing line.

Using the origin and the parts#

You can select the origin (the point where the dashed axis lines cross), and the dashed orange edges and corners of parts, as part of a constraint. For example:

  • Select the origin and the bottom line of a shape, then click Midpoint (M) to centre the shape left to right.
  • Select a corner of your shape and a corner of the part, then click Coincident (•) to join them.

Removing a constraint#

Click a constraint's symbol to select it, then press Delete. Ctrl+Z takes back one you have just added.

Tips#

  • With Select, drag a blue point to see how it can still move. That shows which dimension or constraint is missing.
  • Use Equal instead of typing the same size twice: change one size and the others follow.
  • For a symmetric design, draw a construction centre line and use Symmetric, or Mirror.
  • A point made Coincident with a line can slide along the line, even past its end. Add a dimension to hold it where you want it.

If it does not work#

  • The button is grey: what you selected does not fit. Check the table: Midpoint, for example, needs one point and one line. Press Esc to clear the selection and start again.
  • Already constrained that way, so nothing was added. It was already true, for example a line you drew horizontal.
  • That constraint fights the ones already there, so it was not added. Delete one of the others first.
  • Horizontal on that line would squash the shape flat. Did you mean Vertical? You picked Horizontal for an upright line, or Vertical for a level one.
  • Red lines and symbols: two rules or sizes fight each other. Click the red one and press Delete, or press Ctrl+Z.