Parametric sketching with Apple Pencil
A parametric sketch is one where the sizes and relationships drive the shape. Change a number and the drawing follows. It’s how every CAD program builds parts, and it works just as well in 2D on an iPad, with a Pencil instead of a mouse.
Dimensions and constraints
Two things pin a sketch down. Dimensions set sizes: a length, a radius, a diameter or an angle. Constraints set relationships: this line is horizontal, these two are equal, that arc is tangent to this line. A dimension that controls the geometry is a driving dimension. Edit it and the geometry moves to match.
The usual constraints are much the same in every program:
- Horizontal, vertical: a line runs level or plumb.
- Parallel, perpendicular: two lines run alike or meet square.
- Equal: two lines are the same length, or two circles the same size.
- Coincident, on: two points join, or a point sits on a line or curve.
- Tangent, concentric: an arc meets a line smoothly, or two circles share a centre.
- Midpoint, symmetric: a point sits halfway along a line, or two points mirror across one.
- Fix: a point stays where it is.
Degrees of freedom
Every point in a 2D sketch can move two ways, across and up. Each constraint or dimension takes away one or more of those freedoms. When none are left, the sketch is fully defined: nothing can move unless you change a number. Fully defined sketches are the ones that behave when you edit them later.
Over-constrained
Add one constraint too many and the sketch can’t satisfy all of them, such as a rectangle with a width of 80 and its top and bottom set equal to two different lengths. Good tools tell you which constraint is in the way, rather than just refusing. Remove or replace the one you care about least.
A good order to work in
- Shape first. Horizontal, vertical, parallel, equal and tangent. These rarely change.
- Then sizes. Dimension from one edge or a centreline, not from feature to feature, so a change doesn’t ripple.
- Then position. Fix one point, or tie the sketch to a datum.
- Don’t double up. If two lines are equal, dimension one of them.
Parametric sketches in PencilCAD
PencilCAD reads the marks you’d make on paper, so you can constrain a sketch without leaving the Pencil.
- In Settings → Tools, choose CAD. Sketch with Line and Shape, or turn on Hold to make lines and hold a scribble still to turn it into lines.
- Pick Constrain. Write a size beside a line, such as 120, 3 1/2, 2′6″, R20, ⌀40 or 45°. It becomes a driving dimension and the shape resizes.
- Draw marks: two ticks for equal, arrows for parallel, a corner box for square, a loop around two ends to join them. Or tap Constrain again to pick from all thirteen constraints.
- Tap Finish to add whatever the sketch is missing, at the sizes it has now. A fully defined sketch turns green.
- If a new constraint clashes, the card names the one in the way. Tap Replace to swap them in one undo step.