Sketching
A sketch is a set of lines, arcs, circles and points on a plane, held by constraints and dimensions. Its closed regions are what extrudes, revolves, sweeps and lofts turn into solids.
Where a sketch goes
Click Sketch, then a plane or a flat face of a part. If a plane or flat face is already selected, the sketch goes on it straight away. Double-clicking a plane, in the view or in the feature list, starts a sketch on it too. On a face, the sketch’s plane follows the face when the model changes. Round holes of that face that lie wholly inside what you draw are brought into the sketch when you finish it, so an extrude of the shape leaves them open; delete one from the sketch to cover it.
To sketch at a distance from a plane, first make a Plane feature offset from it.
Drawing
Line, rectangle, circle and arc each have several kinds. The button shows the kind last used, and the arrow beside it lists the others.
| Key | Tool | How |
|---|---|---|
| L | Line | Click each point. Lines chain end to end. Right-click, Esc or a double-click ends the chain, and clicking the chain’s first point closes it. |
| Centre line | A line drawn as construction: an axis to revolve about or to mirror in. | |
| Midpoint line | Its middle, then one end. The middle is held where you clicked. | |
| R | Corner rectangle | Two opposite corners. |
| Aligned rectangle | One side (two clicks), then how far across. For a rectangle on a slope. | |
| Centre rectangle | The centre, then a corner. | |
| C | Circle | The centre, then a point on it. |
| 3-point circle | Three points on it. | |
| Ellipse | Its centre, the end of one half-width (which turns it), then a point for the other. Size it with dimensions from its centre to its two end points. | |
| A | 3-point arc | Its two ends, then a point on it. |
| T | Tangent arc | Start at the end of a line or arc, then click where it ends. |
| Centre-point arc | Its centre, where it starts, where it ends. It goes the short way round. | |
| Slot | The two centres, then its width. | |
| G | Polygon | The centre, then a corner. The number of sides is in the bar. |
| Polygon by a side | The centre, then the middle of a side. | |
| Spline | Click the points it goes through. Right-click, Enter or a double-click ends it; clicking its first point closes it. | |
| Bézier curve | Click its start, the points that steer it, and its end; right-click or Enter ends it. | |
| Conic | Click its two ends, then the point that steers it. Double-click it to set rho: 0.5 is a parabola, less is part of an ellipse, more a hyperbola. | |
| Text | Click where the text starts, then type the words, pick a font, and set the height of a capital and an angle in the panel. Each letter is a region to extrude. Double-click the text to change it. The fonts are Source Sans 3 (semibold, regular, bold and italic), Liberation Serif and IBM Plex Mono. | |
| P | Point | A click. Points mark holes. |
| Q | Construction | Turns the selected shapes into construction shapes, or back. With nothing selected, the next shapes drawn are construction. Construction shapes are dashed and make no regions. |
As you draw, JEKcad infers constraints and shows each one as a glyph by the pointer. ● means coincident with a point, M the middle of a line, ⌒ on a curve, H horizontal and V vertical. A tangent arc is held tangent where it starts.
The same inference reaches the model. Move the pointer within a few pixels of a corner or an edge of a part and the point snaps to it. It also snaps to the middle of a straight edge (M) and the centre of a round one (◎). Click, and the point is held there: the edge comes into the sketch as a fixed construction line, circle or arc, and the point is constrained to it. A corner comes in as a fixed point. When the model changes and that edge or corner moves, the sketch moves with it.
The point also locks to where two shapes cross (✕): two shapes of the sketch, a shape and an edge of the model, or two edges of the model. It is held on both, so it stays at the crossing when either moves.
A first point placed level with the origin, or straight above or below it, is held level or in line with it (H or V by the pointer). A polygon whose first corner is level with its centre is held that way up.
A line drawn to a circle or an arc, nearly touching it, ends where it touches and is held tangent (T). A point placed level with another point, or straight above or below one, is held so; a dashed line runs to the point it is level with. Hold Shift while you draw and nothing is inferred.
While you draw, the size of the shape shows by the pointer: a line’s length, a rectangle’s width and height, a circle’s diameter.
Constraints
Select shapes or points, then click a constraint in the sketch bar:
| Constraint | Select |
|---|---|
| Coincident | Two points, or a point and a curve |
| Horizontal, Vertical | Lines, or two points |
| Parallel, Perpendicular | Two lines |
| Tangent | A line or curve and a circle or arc; an ellipse and a line, circle or arc; a spline and another shape. Where the spline’s end meets the other shape it leaves along it. Otherwise a line, circle or arc touches the spline part-way along. |
| Curvature | A spline and the line, arc or spline its end meets: the spline’s end leaves the same way and bends as much |
| Equal | Lines (their lengths) or circles and arcs (their radii) |
| Midpoint | A point and a line |
| Concentric | Two circles or arcs |
| Symmetric | Two points and the line between them |
| Normal | A line and a circle or arc: the line points at its centre |
| Fix | Points or shapes, held where they are |
A point can be held on an ellipse or a spline with Coincident, as on a line or a circle. Click a point and the curve, then Coincident.
Each constraint shows as a glyph beside what it holds. Click a glyph to select it and press Delete to remove it. A constraint that cannot hold with the others is refused and taken back.
Dimensions
The quickest dimension is typed as you draw. Click where a line starts, move the pointer the way it should go, type its length and press Enter. The line is made that long and dimensioned, and the next line of the chain starts from its end. A circle takes its diameter the same way. A rectangle takes its width, then Tab or Enter, then its height.
A number typed straight after a shape is drawn, before the pointer moves, dimensions that shape: a line’s length, a circle’s diameter, an arc’s radius, a rectangle’s width and then its height. With the select tool, double-click a line, circle or arc to dimension it.
For everything else press D, then click:
- a line, then anywhere off it, for its length;
- a circle for its diameter, or an arc for its radius;
- two points, for the distance between them (horizontal or vertical when they line up on screen);
- a point and a line, for the distance from the line;
- two lines, for the angle between them (or the distance, if they are parallel). Where the lines meet, it is the angle inside the corner.
The origin counts as a point. So do the corners of the model, and its straight and round edges count as lines and circles, so a hole can be dimensioned 10 mm from the edge of the part it is cut in.
Type the value in the box that appears and press Enter. Esc takes back a dimension you have just made. Double-click a dimension to change it. With the select tool, drag a dimension’s value to move it clear of the drawing.
A new value moves the shape the dimension measures and leaves the rest of the sketch where it is, as far as its constraints allow. Between two shapes it moves the one held by less; if they are held alike, the one clicked second.
A value can be a number (millimetres, or degrees for an angle), a number with a unit (0.5 in, 2 cm, 30 deg, 1 rad), an expression (25.4 / 2 + 1, sqrt(2) * 10), or use the Variables table (#width * 5 / 8). When the value names a variable, the dimension shows both the value and what you typed.
Fully defined
Shapes that can still move are blue. Once their constraints and dimensions fix every number of a shape, it is drawn in ink. A fully defined sketch changes only when you change a dimension or a variable.
Select a free point or shape and drag it: the sketch is solved as it moves, keeping every constraint and dimension.
Changing shapes
| Key | Tool | How |
|---|---|---|
| M | Trim | Click a piece of a shape between the places other shapes cross it, and the piece goes. A trimmed ellipse or spline is still that ellipse or spline, shown over the stretch that is left, so its points, constraints and dimensions stay. |
| Extend | Click a line near an end: the end carries on to the first shape in its way. | |
| Split | Click a line or an arc where to cut it in two. The halves stay joined. | |
| Sketch chamfer | Click a corner where two lines meet. The distance back from the corner is in the bar. | |
| Sketch fillet | Click a corner where two lines meet. The radius is in the bar. Anything that held or measured the corner now holds a construction point left where it was. | |
| O | Offset | Select shapes, set the distance in the bar (negative for the other side), then click Offset. Copies of lines that met are joined. An ellipse’s or a spline’s copy is a spline set that far off it, which follows the curve when it changes. Double-click it to change the distance. |
| Mirror | Click Mirror: a small panel opens. Click the shapes to mirror (or drag a box round them), click the Mirror line box and then the line, and press Mirror. Each copy’s points are held symmetric to the original. A text or a picture is mirrored too, and reads backwards as a reflection does. | |
| Linear pattern | Click the shapes into the panel, type the step across and up and how many in all, then Pattern. Copies keep the constraints and dimensions among the shapes copied. | |
| Circular pattern | The same, about a point (x, y) and over an angle. | |
| Transform | Click the shapes into the panel, then move them across and up, turn them and scale them (about their middle). What would hold them where they were is let go. | |
| Intersection | Click a part: where it cuts the sketch’s plane comes in as fixed shapes. | |
| Silhouette | Click a curved face of the model: its outline, seen square on to the sketch, comes in as lines, circles and splines held where they are. They follow the face when the model changes. | |
| Pierce | Click an edge of the model that goes through the sketch’s plane: a point comes in where it does, and follows the edge when the model changes. | |
| Insert DXF | A DXF file’s lines, circles, arcs, ellipses, splines, polylines and text come in where the file puts them, selected, ready to drag or Transform. Blocks are put in where the drawing places them, and a hatch comes in as its outlines. A drawing in inches, feet, centimetres or metres is turned into millimetres. Dimensions and pictures in the file are not read. | |
| Insert a picture | A PNG, JPEG, WebP or GIF under 2 MB is drawn on the sketch’s plane to trace over. Set its width and angle in its panel (double-click it to open the panel again) and drag it by its corner point. It makes no regions and is saved in the file. | |
| U | Use | Click edges of the model to project them into the sketch, fixed where they are. A straight or round edge follows the model when it changes. |
Ctrl+C and Ctrl+V copy and paste shapes, with the constraints between them. Ctrl+Z and Ctrl+Shift+Z undo and redo inside the sketch.
Press Enter, or click ✓ Finish, to finish. Cancel leaves the sketch as it was before you opened it.
Regions
The plane is cut by every shape that is not construction. Each closed area this leaves is a region. A circle inside a rectangle makes two regions: the ring, and the disc inside it. Click regions to choose what a feature uses. By default an extrude takes the regions that are not holes in another, so for the ring and disc it takes only the ring.