CAD sketch

On this page 7

A CAD sketch is a two-dimensional profile drawn on a plane or planar face that a parametric modeler uses as the input for three-dimensional features such as extrusions, revolves, sweeps and lofts. In CAD for makers, nearly every printable part in 3D printing & making begins as a sketch: a set of lines, arcs and circles that is fixed in size and position by dimensions and geometric constraints, then turned into solid geometry.

The sketch is where design intent is recorded. A well-built sketch states not only what a shape looks like but why it has that shape, for example that two holes stay symmetric about a center line or that a wall thickness follows one named parameter. That intent is what lets a maker change one value and regenerate a whole part instead of redrawing it.

How a CAD sketch is built and solved

A CAD sketch is built from sketch entities placed on a sketch plane, then solved by a constraint solver that calculates positions satisfying every rule at once. The plane can be a default origin plane (XY, XZ, YZ), an offset construction plane or a flat face of existing geometry, and its choice defines how the resulting feature is oriented in the part.

Entities fall into two groups. Profile geometry forms closed regions that features can consume, while construction geometry (center lines, reference circles, helper points) guides the layout without becoming part of the solid. Projected or referenced edges from other bodies tie the sketch to existing geometry so that it updates when that geometry moves.

The following table lists the entity types found in almost every parametric tool and their typical role in printable parts.

EntityDefining valuesTypical use in printable parts
LineTwo endpoints, length, angleOuter walls, ribs, flat edges
ArcCenter, radius, sweep angleRounded transitions, slots, curved housings
CircleCenter, diameterScrew holes, heat-set insert bosses, pins
SplineControl or fit points, tangencyErgonomic grips, organic covers
PointCoordinatesHole centers, pattern anchors
Construction lineSame as a line, excluded from profilesSymmetry axes, revolve axes, layout guides
Common sketch entities and their roles

When a feature is created, the software detects closed loops and offers the enclosed regions as selectable profiles. An open loop, a tiny gap between endpoints or overlapping duplicate lines prevents a region from forming, which is the most frequent reason an extrusion refuses to work.

Constraints, dimensions and degrees of freedom

A sketch becomes predictable only when its degrees of freedom are removed by constraints and dimensions. Each free point in 2D has two degrees of freedom, a circle has three (center X, center Y and radius), and every constraint or dimension removes one or more of them. When the count reaches zero, the sketch is fully constrained and most tools change its color, commonly to black in Fusion and SOLIDWORKS or to green in FreeCAD.

Geometric constraints define relationships, and driving dimensions define sizes. The table below compares the three solver states a maker sees while working.

StateWhat it meansConsequenceRecommended action
Under-constrainedSome entities can still moveEdits elsewhere may distort the shapeAdd dimensions or constraints until fixed
Fully constrainedZero remaining degrees of freedomShape changes only through parametersPreferred final state
Over-constrainedRedundant or conflicting rulesSolver error or warning, feature may failDelete the redundant rule or use a reference dimension
Sketch solver states

Typical geometric constraints include coincident, horizontal, vertical, parallel, perpendicular, tangent, concentric, equal, symmetric and fix. Dimensions can reference named parameters or expressions, for example wall = 2.4 mm or hole_d = insert_d - 0.2, which turns a sketch into a configurable template. A reference (driven) dimension only reports a value and never drives geometry, which is the standard way to show a measurement without over-constraining.

From sketch to 3D feature

Every sketch-based feature consumes one or more profiles and adds a direction or path to create volume. The sketch therefore sits at the start of the feature tree, and later features such as a fillet or chamfer operate on the edges that the sketch-based solid produced.

FeatureSketch inputAdditional inputTypical printable result
ExtrudeClosed profileDistance or end facePlates, brackets, enclosures
RevolveHalf profileAxis lineKnobs, spools, nozzles
SweepProfilePath sketchCable channels, handles
LoftTwo or more profilesOptional railsFunnels, ducts, transitions
Cut or pocketClosed profileDepth or through allHoles, slots, recesses
Sketch-based features and their inputs

Because features store a link to their sketch, editing a dimension triggers regeneration of every dependent feature. This is the core advantage of parametric modeling over direct modeling, where geometry is pushed and pulled without a stored sketch history.

Sketching for 3D printing

For additive manufacturing, a sketch should encode printer-specific values as parameters rather than as fixed numbers. Clearances, wall thicknesses and hole compensation depend on the nozzle, material and slicer, so storing them as variables makes it easy to retune a design after a test print.

ParameterTypical FDM rangeReason
Wall thicknessMultiple of line width, often 1.2-2.4 mmAvoids thin gaps the slicer cannot fill
Sliding clearanceAbout 0.2-0.4 mm per sideLets mating parts move after printing
Hole compensationAbout 0.1-0.3 mm oversizePrinted holes shrink because of polygon facets
Heat-set insert borePer insert datasheet, slightly undersizedEnsures melt-in grip without cracking
Printing-related values worth parameterizing

These ranges are starting points rather than rules; actual values depend on printer calibration, material shrinkage and slicer settings, and a short tolerance test print is the reliable way to confirm them. Sketches that will become a print-in-place hinge or a snap-fit joint benefit most from parameterized gaps, because a 0.1 mm difference can decide whether the part moves or fuses.

Common mistakes and good practice

Most failing models trace back to a few sketch habits. Experienced designers keep sketches simple, fully constrained and focused on one feature, and they add rounds and chamfers later as features instead of drawing them into the sketch.

  • Overloaded sketches: one sketch driving ten features becomes fragile; split it by function.
  • Sketch fillets instead of feature fillets: they add constraints and break more easily when sizes change.
  • Referencing unstable faces: attaching to generated edges can cause topological naming errors after upstream edits, a known issue in many tools, including older FreeCAD releases.
  • Leaving sketches under-constrained: the part may change shape silently during a later edit.
  • Hard-coded numbers: repeated values should live in a parameter table so a single change updates them all.

Put simply

A CAD sketch is a flat drawing with rules attached. Before a 3D part exists, the designer draws its outline on a flat surface, then adds rules such as “these two lines are parallel” and “this hole is 5 mm wide”.

The program then lifts that outline into a solid, much like pressing cookie dough through a shaped cutter. Because the rules are remembered, changing one number later reshapes the whole part automatically. The key idea is that a good sketch makes changes cheap.

In practice

A maker designs a wall bracket for a 25 mm pipe that will be printed in PETG. The first sketch, drawn on the XY plane, contains a rectangle for the base plate and a circle for the pipe clamp, with the circle diameter set to the parameter pipe_d + 2 * clearance and two screw holes made equal and symmetric about a vertical construction line.

The first print fits too tightly, so the maker changes clearance from 0.2 mm to 0.35 mm in the parameter table. The sketch updates, the extrusion and the screw-hole cut regenerate, and the second print slides onto the pipe with a firm grip. One parameter edit replaced a full redraw, and the same file later produced a 32 mm variant in under a minute.