Tavreno CAD / Handbook / Part Design

Mechanical Part Design in FreeCAD: From Sketch to Validated Solid

A parametric model is only as reliable as its first sketch. This chapter covers the practical sequence used in production work: sketch geometry, constraint logic, feature ordering, and the validation passes that keep a part stable when the drawing changes three revisions later. No shortcuts, no rebuild roulette.

Reading time 9 min · Updated for FreeCAD 0.21 / 1.0

Parametric bracket model with visible sketch constraints and dimension lines

Numbers that matter

Four figures that define a stable part model

100%

Degrees of freedom removed

A sketch must report zero remaining DoF before it feeds a Pad or Pocket. Anything less transfers into downstream feature failures.

0.01 mm

Typical drawing tolerance step

The rounding interval used in most TechDraw templates. Set it once in the sheet template, not per dimension.

3–5

Constraints per sketch entity

Above this density the solver starts returning redundant or conflicting constraint warnings. Split geometry instead of stacking.

±0.15 mm

Realistic FDM dimensional drift

The figure used to offset mating features before export. Anything tighter needs post-machining, not slicer tuning.

Contents

What this chapter covers

Six sections, ordered the way the work actually happens on a desk. Jump straight to the part you need, or read top to bottom — the cause analysis only makes sense after the problem is defined.

Problem

Why the model breaks on the third revision

A part that took forty minutes to model can take four hours to repair. The failure is rarely dramatic: a chamfer that suddenly points the wrong way, a pocket that punches through a wall it never touched before, or a fillet that refuses to rebuild after a single dimension change. In FreeCAD these symptoms usually trace back to the first two minutes of the job — the sketch and the reference geometry it was attached to.

The underlying mechanism is topological naming. When a feature is edited, the kernel regenerates the solid and renumbers its faces and edges. Any later feature that was attached to "Face 7" now attaches to whatever occupies that index after regeneration. A model built without stable references is therefore a model with an expiry date.

The second failure mode is constraint debt. Sketches accumulate horizontal, vertical, coincident and equality constraints that each seemed harmless at the time. Once the sketch carries redundant constraints, the solver either drops one silently or reports a conflict that is impossible to locate visually. Both outcomes produce geometry that looks correct on screen and is wrong in the export.

The third factor is feature ordering. Pads, pockets and fillets applied in the order they were thought of — rather than the order the part is machined — create dependencies that cannot survive a design change. A fillet placed before the pocket it should follow will fail every time the pocket depth moves.

"If a sketch is not fully constrained, the model is not parametric. It is a screenshot of a part."

Tavreno CAD — part design module

Cause

Five factors that destabilise a part

Each factor below is a structural vulnerability, not a user error. Fix the structure and the errors stop appearing. The list is ordered by how often it shows up in review of production models.

  1. 1. References to generated topology

    Attaching sketches or datums to faces and edges created by a previous feature. The reference index changes on rebuild; the attachment does not. Use origin planes, datum planes and datum lines instead.

  2. 2. Under-constrained geometry

    A sketch that still has degrees of freedom will move when any driving dimension changes. The solver is free to satisfy the new value in an unintended direction.

  3. 3. Redundant and conflicting constraints

    Two constraints describing the same geometric fact. The solver removes one, and the removal is not always the one you would have chosen.

  4. 4. Wrong feature order

    Dress-up features — fillets, chamfers, drafts — applied before the primary material removal. They reference edges that will be consumed by the next operation.

  5. 5. Missing units and tolerance discipline

    Mixing millimetres and inches inside one document, or leaving dimensions unrounded, produces drawings that pass review and fail inspection.

Solution

Three technical countermeasures

The fix is not a single setting. It is a working order: build references that survive regeneration, constrain until the solver reports zero degrees of freedom, and validate the result against a drawing before it leaves the document. The three sections below go deeper on each stage.

Stable reference strategy

Anchor every sketch to origin planes or named datum geometry. Name the datums after the function they serve, not their creation order.

Assembly4 and A2plus

Drawing as a check

A TechDraw projection exposes geometry errors that the 3D view hides. If a dimension cannot be placed cleanly, the model has a problem.

TechDraw 2D Drafting

Load and motion verification

Kinematic constraints confirm the intended motion; FEM confirms the part survives it. Run both before the design review, not after.

Kinematics and FEM

Workflow

Sketch workflow: six steps, fixed order

This sequence is used for every prismatic part regardless of complexity. Following it removes most rebuild failures before they are created, because each step produces geometry that the next step can safely reference.

  1. Define the datum base first

    Create the sketch on the XY origin plane, or on a named datum plane offset from it. Never on a face produced by another feature.

  2. Draw coarse, constrain hard

    Place approximate geometry, then apply geometric constraints — coincident, horizontal, vertical, tangent — before any dimensional value. The shape should already be correct in proportion.

  3. Add driving dimensions last

    Apply dimensional constraints only to what geometric constraints cannot define. Reference the sketch to the origin so the solver can close the remaining degrees of freedom.

  4. Verify zero degrees of freedom

    The solver message must read fully constrained. If it reports one or two remaining, add a coincident or distance-to-origin constraint rather than a second dimension on the same edge.

  5. Sequence features by material logic

    Primary pad, then primary pockets, then secondary pockets, then dress-up features. Fillets and chamfers always come last in the tree.

  6. Test the model against change

    Before saving, change two driving dimensions by ±10% and rebuild. If the tree fails, the reference structure is wrong — fix it now, not after the drawing is issued.

Fully constrained sketch with dimension and geometric constraint markers
Source: constraint status panel, fully constrained profile at zero degrees of freedom.

Reference

Constraint reference: what each one removes

Every constraint removes degrees of freedom. Knowing which ones and how many prevents both under- and over-constraining. The failure column lists the symptom seen most often in practice.

Constraint DoF removed Typical failure
Coincident point 2 translational Duplicated on an already-joined vertex — redundancy warning
Horizontal / Vertical 1 rotational Applied to a line that already inherits orientation from a rectangle
Distance (driving) 1 translational Two distances on the same edge — conflict, solver picks one
Distance (reference) 0, read-only Used as driving dimension by mistake — sketch stays under-constrained
Tangent 1 rotational Applied between non-adjacent arcs — geometry flips on rebuild
Symmetry 2 translational + 1 rotational Missing axis reference — profile mirrors to the wrong side
Block All remaining Used to silence the solver — the sketch is no longer parametric

Checklist

Validation before release

Run this list on every part that leaves the document. It takes under ten minutes and eliminates the majority of downstream drawing and manufacturing errors. For printed parts, add the offset and wall-thickness review in the additive manufacturing section.

  • Sketch status

    Every sketch reports fully constrained, zero redundant constraints, no conflicting pair.

  • Reference audit

    No sketch or datum attached to a generated face or edge. All attachments resolve to origin or named datums.

  • Rebuild test

    Two driving dimensions changed by ±10% and reverted. The feature tree rebuilds without a single error marker.

  • Geometry check

    Part validated for self-intersections and non-manifold edges. Shell thickness measured at the thinnest section.

  • Drawing consistency

    TechDraw views regenerate from the current model, dimensions carry tolerances, and the sheet scale is stated.

  • Export integrity

    STEP export re-imported into an empty document and measured. Units confirmed in millimetres on both sides.