Sketching
Starting and ending a sketch
Click a plane or a flat face, then click Sketch (Sketch tab), or right-click a face ▸ Sketch. Clicking a sketch tool such as Circle with no sketch open also starts a 2D sketch: pick a plane or flat face and the tool is ready. (For sketches in space, see the 3D Sketches chapter.) You can also start a feature such as Extrude without a sketch: RazorCAD asks you to pick a plane or face, you sketch, and when you exit the sketch the feature continues. If the profile is open you can keep editing or abort and keep the sketch.
A sketch on a flat face of the model follows the face: when the model changes so that the face moves (a taller block, a deeper cut), the sketch moves with it along the face's normal and the features made from it follow. Its curves keep their place on the plane: the sketch moves only along the normal, not across. The face is found again by its direction and where it was in the part, as fillet edges are. If it is no longer there, the sketch stays where it was and its tree item says so; right-click it ▸ Change Sketch Plane… to put it on a face again. Sketches put on faces before version 0.20.1 keep the plane only and stay where they are, until you pick the face again with Change Sketch Plane.
- Esc ends the active sketch tool first; pressing it again closes the sketch and keeps it.
- Enter does not leave the sketch.
- The ✔ in the confirm corner, or Exit Sketch, closes the sketch.
- Ctrl+Z / Ctrl+Y undo and redo inside the sketch.
Typing sizes while you draw. With a shape started (its first point placed), type a number: a small box opens by the cursor with its sizes. The shape follows what you type; Tab goes to the next size, Enter makes it at those sizes and adds a dimension for each length you typed (the others follow the mouse, in the direction it went), and Esc closes the box. A line typed at 0°, 90°, 180° or 270° is made horizontal or vertical; other angles, an arc's sweep and a polygon's sides shape it without a dimension. Sizes can be expressions, as in any dimension. The shape and its dimensions are one undo step.
| Tool | Sizes | |
|---|---|---|
| Rectangle (corner or centre) | Width, Height | |
| Circle | Ø | |
| Polygon | Ø (of the circle through its corners), Sides (3 to 40) | |
| Line, Centerline | Length, Angle | |
| Centerpoint Arc | Radius and Sweep (after its centre); Sweep (after its start) | |
| 3 Point Arc | Radius (after both ends; the shorter arc, on the side of the mouse) | |
| Tangent Arc | Radius, Sweep (turning the way the mouse went) | |
| Ellipse | Major R and Minor R (after its centre); Minor R (after its major axis) | |
| Straight, Center Point and Overall Slot | Length and Width (after the first point); Width (after the length) |
The grid. Points snap to the sketch grid, drawn round the middle of the view; it gets finer as you zoom in. The status bar shows its step (Grid 5 mm) while a sketch is open.
The sketch tool wheel
While sketching, press and hold the right mouse button. After a moment, or as soon as you start to drag, a wheel of sketch tools appears around the pointer. Keep the button held, move toward a tool (it highlights) and release to activate it. Releasing in the centre or pressing Esc cancels. A quick right click (press and release without moving) still opens the right-click menu.
Defined and under-defined sketches
Sketches are made of points, lines, arcs and circles held in place by relations and dimensions. A numerical constraint solver keeps them satisfied.
- Geometry is blue when under-defined and black when fully defined.
- The Property panel shows the remaining degrees of freedom.
- An under-defined sketch shows (-) in the tree. Construction lines only need to be positioned. To rename a sketch, right-click its tree item and choose Rename, including when it has the (-) marker.
Automatic relations
With Automatic relations while sketching enabled, Line and Centerline infer parallel or collinear directions from other lines in the active sketch, including construction and projected lines. The reference highlights orange and the cursor identifies the proposed relation. Click to create a persistent relation. Starting near a line's extension snaps onto its supporting line; continuing along it creates Collinear. Endpoint, midpoint and on-curve snaps retain priority. Direction inference uses a 4° angular tolerance and a 9-pixel proximity limit; spline control-polygon helpers are excluded. Turning automatic relations off disables these inferences.
Sketch orientation
In the sketch Property panel, Rotate 90° turns the sketch axes about the sketch normal, and Flip Side looks at the sketch from the other side of the plane. Both are saved with the sketch.
Sketch tools
| Tool | Key | How it works |
|---|---|---|
| Select | S | Select entities, drag geometry |
| Line | L | Click a chain of points. Coincident, horizontal, vertical, parallel and collinear relations are inferred automatically; snapping to a midpoint or onto a curve adds those relations too. Double-click, Enter or Esc ends the chain. |
| Centerline | Construction line for symmetry, mirroring, gears or as a revolve axis | |
| Midpoint Line | Midpoint, then one endpoint; the opposite endpoint is mirrored and a Midpoint relation preserves the centre | |
| Corner Rectangle | R | Built with horizontal and vertical relations |
| Center Rectangle | Also adds construction diagonals with a midpoint relation | |
| Circle | C | Centre, then radius (a point on the circle). Click an existing point first for a concentric circle; a small one can be clicked a few pixels out and sized by its dimension |
| Centerpoint Arc | A | Centre, start, end; the direction follows the mouse |
| 3 Point Arc | Start, end, then a point it runs through | |
| Tangent Arc | From the end of a line or arc, kept tangent by a Tangent relation | |
| Ellipse | Centre, end of the major axis, then the minor radius. Trim it for an elliptical arc. | |
| Fit Point Spline | N | Through fit points, with editable tangent direction and strength handles; see below |
| Point | Lone sketch points that stay, for example to place holes | |
| Straight Slot | Built with tangent and equal relations | |
| Center Point Slot | Slot midpoint, one end-arc centre, then width | |
| Overall Slot | Two outermost points along the axis define total length; the third click defines width | |
| Center Point Arc Slot | Centre of the path arc, start centre, end direction, then width | |
| 3 Point Arc Slot | Start centre, end centre, third point on the centre arc, then width | |
| Polygon | P | Set the number of sides in the Property panel |
| Dimension | D | See below |
| Trim | T | See below |
| Extend | A line or arc end runs on to the first entity in its way and stays on it | |
| Split | Splits a line or arc in two at the click; the halves stay collinear or equal | |
| Project Edges | E | See below |
| Offset | O | See below |
| Mirror | Select the entities plus a centerline, then click Mirror | |
| Import DXF | See below | |
| Sketch Picture | A picture (PNG, JPEG, BMP, GIF or WebP) on the sketch plane, to trace over. See below | |
| Equation Curve | A spline through the points of y = f(x) (x from / to) or of x = f(t), y = g(t) (t from / to), in a number of Pieces. Part variables can be used and the curve follows them; sin, cos and tan take degrees. A parametric curve that ends where it starts is closed. An Equation relation holds it (it is fully defined); select it and use Equation Curve again to change it. | |
| Linear Sketch Pattern | Opens a side panel with an orange preview. Select source entities before or after opening it, then choose an angle, line or curve as direction/path. Copies stay linked to their sources, path, quantity and spacing. Along a curve, spacing is measured along it and copies can rotate with it; open paths stop at their end. A straight direction also supports a second direction. | |
| Circular Sketch Pattern | Copies the selected entities round a centre: enter the number of instances (the original included) and the total angle (360 spreads them evenly). A selected point is the centre (it may move later); otherwise enter its X and Y. The copies stay linked to the originals, as a linear pattern's do: they follow their size and position, so a bolt circle drawn as one dimensioned hole and its pattern is fully defined. Change the count or angle with Sketch Patterns ▸ Edit Circular Pattern in the sketch's panel. An airfoil on a patterned chord line is copied with it. | |
| Timber Section | Pick a market, a timber size (or one you saved under Structural Member) and whether it sits on edge or flat, then click where the middle of the section goes: a rectangle sized by its two dimensions, ready to extrude to length. Click again for more; Esc ends. | |
| Make Block / Insert Block / Explode Block | Make Block saves the selection (with its relations) under a name in your settings. Insert Block places copies with a click, in any sketch, turned by an angle, and can delete blocks from the library. A linked copy (the default) moves and turns as one (a rigid Block relation holds it) and follows the block: Make Block again under the same name updates every copy in the sketch where it is, keeping relations from other geometry to it. Explode Block makes the selected copies plain geometry with the block's own relations and dimensions. Untick Linked for plain copies. | |
| Text | See below | |
| Gears | See the Gears chapter | |
| Airfoil | See the Airfoils chapter | |
| Sketch Fillet / Sketch Chamfer | Set the radius or distance, then click corners (a fillet: where two lines, a line and an arc, two arcs, or a fit-point spline and a line or an arc meet: the spline is cut back to the fillet, which stays tangent to it; a chamfer: two lines). The first one made gets the dimension; the others of the same size made before you leave the tool are made Equal to it, so one value changes them all. Type another size to start again: the next one gets its own dimension and the ones after it are Equal to that. | |
| Intersection Curve | Click earlier sketch curves to create linked intersections with the active sketch plane, or select a model section | |
| Construction Geometry | Q | Toggles selected curves to/from construction; with no curves selected, toggles construction mode for newly drawn geometry. The drawing panel also has For construction. Preview and resulting geometry are dashed and ignored by features. |
| Display Relations | Shows or hides the relation glyphs | |
| Delete | Del | Deletes the selected entities or relations |
Linear patterns and patterns along a path: confirm with the checkmark, or cancel with the cross (Enter / Esc also work outside input fields). The preview does not change the sketch until confirmed. Use Sketch Patterns ▸ Edit Pattern in the sketch Property panel to change sources, path, count, spacing or rotation later; count and spacing accept expressions. Edit original geometry to change the copies' shapes. Copies are linked and cannot be independently dragged; deleting a source, path or generated entity removes that pattern's copies. Parameters and links are kept with the part and follow undo/redo and rebuilds.
Patterns made by earlier versions were independent copies and contain no stored pattern definition. Recreate them with the updated command to obtain a parametric pattern.
Pattern copies use the defined-geometry colour: black in the light theme and light in the dark theme. Purple identifies projected geometry; the pattern preview is orange.
Fillet corners can share one endpoint or have endpoints joined by Coincident relations. If exactly two regular lines/arcs meet at a corner, construction geometry there is ignored when choosing the curves to fillet. An invalid radius leaves the sketch unchanged.
Dimension
Click a line, circle or arc (or two entities), then click to place the dimension.
You can also select a curve or two entities before starting Dimension. Move the pointer to position the orange preview, then click to confirm; the dimension is not created until that click. Press Esc to cancel the pending dimension. The text is placed at the point you choose.
With Select or Dimension active, drag a dimension's number to reposition its annotation without changing the measured geometry or value. A plain click still opens the value editor. This also works for driven/reference dimensions; placement is saved with the sketch and follows undo/redo. Press Esc during a drag to cancel the move.
Linear dimension text follows the dimension line and stays upright. Extension lines leave a small gap at the geometry and run slightly beyond the dimension line; short dimensions use outside arrows. For a point-to-line distance, dragging the text also moves the perpendicular dimension line along the reference edge. This lets a short horizontal offset such as 4 mm and an inclined perpendicular offset such as 13 mm use conventional drafting layouts without changing what they measure.
- Moving the mouse switches between horizontal, vertical and aligned.
- Two lines give an angle; a point and a line give a perpendicular distance.
- Values accept equations, such as
width/2. - A dimension that would over-define the sketch is added as a driven (reference) dimension.
- Circles and arcs: dimension from a circle or arc to another circle, arc, point or line by clicking both. The Modify box offers Center (centre to centre), Min (nearest) and Max (farthest). Min also measures the gap between concentric circles. Switching keeps the geometry in place and shows the new value.
- Outside references: you can also click model edges, model vertices or entities of earlier sketches. RazorCAD creates linked construction geometry and dimensions to it, so the dimension follows the model. Example: "keep this hole 25 mm from the right edge" still holds after the width changes.
Trim
Power trim: hover over a segment and it turns red; click to remove it up to the nearest intersections. Lines are shortened or split, circles become arcs, and new end points get on-curve relations.
Offset
Click a line, arc, circle or spline, choose the options in the Property panel, then click to create its offset. Select chain switches between the clicked entity and its connected contour, including mixed line/arc/spline chains. Corners are re-trimmed or extended; an unjoinable or collapsed offset reports an error.
Direction offers Pick side, Inside / left, Outside / right and Both sides. Inside and outside follow the winding of a closed contour, including reversed contours. For an open chain they mean left and right along its traversal. Both sides places a copy at the specified distance on each side: one dimension drives both copies, so the total separation is twice the distance.
Enter Distance before creating the offset; expressions and parameters are supported. Use mouse distance lets the pointer set the initial distance instead. The resulting offset dimension can be edited later. Linked offsets retain their source references through save/reopen and follow source edits. Constrain the source geometry to hold it in place while changing dimensions.
Line and arc offsets remain analytic. Spline parallels are represented by cubic spline pieces, checked against source-curve normals at sampled parameters within 0.001 mm; this is a sampled numerical check, not a certified global bound. Cusps, detected crossings and folds are rejected. A large source edit that exceeds the stored fit tolerance asks you to recreate that offset. Ellipses are not supported. Copies and blocks retain plain geometry rather than the offset link.
- You can also click a model edge (with Select chain, the connected edges lying in a plane parallel to the sketch, such as a face outline) or a curve of another sketch.
- Linked offset (default): the offset follows its source, including model edges when the model changes, and one dimension drives the chain (relation "Offset ⇉").
- Untick it for a single offset: plain geometry with no link.
- While the tool is active, the faces the sketch plane cuts are highlighted and the cut outline is drawn in teal. Clicking it offsets the whole outline.
Project Edges
While editing a source sketch, sketches that depend on it are temporarily hidden to avoid displaying outdated projections over the current geometry. They return after leaving the sketch and rebuilding; independent reference sketches remain visible and the saved visibility settings are unchanged.
If a source edit such as a fillet separates formerly joined endpoints, their projected endpoints separate on rebuild while retaining their source links.
Splines projected from another sketch remain linked splines, preserving their control points, degree and weights. Earlier projections saved as line segments retain that representation.
Click a model edge, or an entity of an earlier sketch, to project it into this sketch. Or select edges first and then click Project Edges (or press E): they are projected at once. Projected geometry is drawn in purple, is linked and updates when the source changes (relation "On Edge ⇲"). The ends of projected lines are joined to each other and to sketch geometry already there, so the edges of a face give a closed outline ready to extrude. While the tool is active, the outline where the sketch plane cuts the bodies is drawn in teal; clicking it converts the whole outline. This works for solids and surfaces.
Selecting source sketches for Project and Intersection
While editing a sketch, activate Project Edges or Intersection Curve. Earlier independent sketches are temporarily shown, including hidden and absorbed sketches; their saved visibility does not change. Click the source curves in the canvas (orbit the view if they overlap). Project creates linked projected geometry. Intersection creates linked points where source lines, arcs, circles or splines cross the active plane (a spline's crossings are solved on its exact curve, every one it makes); coplanar curves retain their geometry. Use the points as guide endpoints. For solid/surface sections, click the displayed section outline. Escape returns to Select.
Projection Source → Source can restrict picking to one earlier sketch or to model edges/sections. Choose the intended sketch when several sources overlap in the view. Other source sketches are temporarily hidden; leaving the tool restores their saved visibility. Source geometry is gray, while projected entities are purple. A visible source edge joining two projected sides is not automatically added to the active sketch.
Spline
New Fit Point Splines include a tangent handle at each fit point. Drag a handle to change tangent direction and strength; adjacent pieces keep the same tangent through their shared fit point. Dragging a fit point carries its handle with it. Handle lines are construction geometry and accept ordinary line constraints and dimensions (for example horizontal, parallel, length or angle). Their remaining freedoms count towards sketch definition. Copies, mirrors, blocks, patterns and linked projections preserve the handles. Existing saved splines retain their previous representation.
Tangent handles are shown with solid teal stems, small direction arrows and round grips. Fit points use square markers. Selection names identify Tangent Handle and Tangent Handle Line, so these controls can be distinguished from ordinary construction centre lines.
Click the points the curve runs through (they snap like line points), then double-click, Enter or Esc to finish, or click the first point again to close it. Drag a point to reshape the curve, or drag the curve to move it; deleting a point takes it out of the spline. Convert to Control-Point Spline (in its panel) makes it a control-point spline that runs through the same points. Splines make profiles on their own or with lines and arcs and are exact curves for extrudes, revolves, cuts, lofts and sweep paths. Lines can be trimmed where they cross a spline.
Control-Point Spline
Control-Point Spline (beside Spline) draws a spline from control points: click them, then double-click, Enter or Esc to finish (click the first point again to close it: it then runs round smoothly, with no join). An open one starts and ends on the first and last control points and passes near the others; a closed one passes near them all. The Closed box in its panel opens or closes it. Choose the degree (1 to 7) in the panel before drawing, or select the spline afterwards to change it (at most one less than the control points): a higher degree is smoother and keeps farther from the polygon. The control polygon is drawn dashed and is made of construction lines, so you can dimension it and give it relations like any lines: horizontal, parallel, equal, an angle. The curve leaves each end along the polygon's end leg, so a relation on that leg (tangent to an arc, collinear with a line) sets its direction there. Drag the control points to reshape it. Deleting the spline deletes its polygon.
Select a control point for its own settings. Weight (1 is plain) pulls the curve toward that point when larger and lets it go farther when smaller: with three control points at the corners of a square, degree 2 and a weight of 0.7071 on the middle one, the curve is a quarter circle (to within 0.00001 mm). Insert After adds a control point half way along the next leg (the curve changes shape a little); Remove, or deleting the point, takes it out and joins its two legs.
Import DXF
Import DXF brings a DXF file into the open sketch: lines, arcs, circles, polylines with arcs, ellipses and elliptical arcs, splines, points and blocks. The file's units are converted to millimetres. You can scale it and place it as in the file, centred, or by its corner.
Sketch Picture puts a picture on the sketch plane behind the sketch, to trace over (a photo, a scan of a drawing). Set its width (the height follows), centre, angle, opacity, or hide it. To scale it by something of known size in it, draw a line along that, select the line, open Sketch Picture again, pick the picture and give the line's true length: the picture is scaled about the line's start. Pictures are shown while you edit the sketch, are saved in the part (shrunk to 2000 pixels across at most) and are not geometry: they make no faces and are not exported.
Text
Click Text on the Sketch tab, then click to place. The panel sets the text, font (the PC's installed fonts, and the DejaVu Sans, Sans Mono and Serif fonts that come with RazorCAD), height (capital-letter height), angle, bold and italic. A font a PC doesn't have is drawn in the DejaVu font most like it. Drag the text to move it. Text extrudes as a boss or cut; text inside an outline is cut out of it. To put text on a curved face, use Wrap (Features chapter).
Relations
Select entities (Ctrl+click for several, or drag a box from empty space: left to right selects what lies wholly inside it, right to left whatever it touches; Ctrl or Shift adds). The Property panel lists the relations that apply:
| Selection | Relations offered |
|---|---|
| 1 line | Horizontal, Vertical, Fixed |
| 2 or more points | Coincident, Horizontal, Vertical |
| 2 or more lines | Parallel, Perpendicular, Collinear, Equal, Horizontal, Vertical |
| Point + line | Coincident (on line), Midpoint |
| Point + arc | Coincident (on curve), Midpoint (half way round the arc) |
| Point + circle | Coincident (on curve) |
| Line + circle/arc | Tangent |
| Line + open spline | Tangent at a spline endpoint (control-point or fit-point spline) |
| Circles/arcs | Equal Radius, Equal Curve Length, Concentric, Tangent |
| 2 or more curves (including splines, ellipses or mixed line/curve selections) | Equal Curve Length; for lines only, use Equal |
| 2 points + line | Symmetric (about the line) |
| 3 lines | Symmetric (two lines about a centerline) |
Relations are shown as small green glyphs next to the geometry. Click a glyph to select it, then press Del to remove it. Hovering a glyph highlights the entities it ties together. For several selected entities, relations already implied by existing constraints are skipped while useful relations are added. A relation refused says why: one that is already satisfied names the relations that already define the geometry that way (an information message); one that would over-define the sketch names the relations or dimensions in its way. Either way those relations are selected, so you can delete one and add the new relation instead. A true conflict rejects the entire request without changing the sketch.
Tangent with a spline: Ctrl-select a line and an open spline, then choose Tangent. The shared endpoint, or otherwise the spline endpoint closest to the infinite line, is used. To choose explicitly (required if both ends are equally close), also select the desired spline endpoint. The selected endpoint is stored and does not switch after edits. For control-point splines the first or last control-polygon leg is aligned with the line; fit-point splines use their endpoint tangent. Coincidence is separate: add Coincident between endpoints or Coincident (on line) to make the curves meet. Closed splines and zero-length endpoint directions are unsupported.
Equal Curve Length (≋) constrains the length measured along each selected curve, not its chord or control polygon. Two arcs may have different radii and sweeps while keeping equal lengths; a spline can also match a line or another curve. Select the curves with Ctrl and choose Equal Curve Length in Add Relations. With more than two curves, each is matched to the first. Circular curves' Equal Radius (=) keeps their radii equal and remains a separate relation. Length links survive source edits, undo/redo, save/reopen and rebuild. Ellipse and spline lengths are integrated numerically from their definitions.
How profiles are found
Profiles are found automatically from all non-construction geometry and sent to the kernel as exact lines, arcs and circles. Intersections are split, dangling lines are ignored and nested loops become holes. A full circle (or arcs that make one) becomes a single closed curve, so an extruded circle has one continuous cylindrical face.
For canvas region selection, connected lines, arcs and splines can divide a closed outline into separate selectable cells within the same sketch. Click inside the desired cell; shared boundary edges may belong to several cells. Holes remain attached to their enclosing cell and can also be selected as disks. New cell references preserve boundary direction so regions sharing the same source curve IDs remain distinct. Existing whole-sketch and saved outline selections retain their previous extent. Construction geometry does not subdivide regions.
Showing and hiding sketches
Sketches absorbed by a feature are hidden by default. Right-click a sketch in the tree ▸ Show / Hide, or use its eye in the tree.
Change Sketch Plane
Right-click a sketch ▸ Change Sketch Plane… and pick another plane or flat face for it, for example to repair a sketch whose plane was deleted ("The reference plane is missing"). Its curves keep their sketch coordinates. Only planes above the sketch in the tree are offered.