1. Place datums in the part
Create an LCS at each mounting interface, aligned to the mating surface normal. Name it by function, not by index: LCS_BearingSeat survives a rebuild, an index does not.
Tavreno CAD · Handbook Chapter 02
Two assembly workbenches, two different constraint mechanisms. How to anchor parts with local coordinate systems, when a solver is the correct tool, and how to keep a 200-part product structure stable after the first dimension change.
Problem
A top-level assembly in FreeCAD usually fails in a predictable way. The parts are correct, the mates are correct, and the model still moves. The failure appears after a single upstream edit: a plate thickness changes from 6 mm to 8 mm, and three fasteners end up 2 mm inside the housing. Nothing in the assembly tree is flagged as broken, which is what makes the defect expensive — it is discovered at the drawing stage or, worse, at the printer.
The technical factor behind most of these failures is reference instability. Constraints created against generated geometry — a face, an edge, a vertex produced by a sketch — are bound to topology that renumbers whenever the upstream feature changes. A mate attached to Face17 does not disappear when the face index shifts; it silently re-attaches to a different face that happens to carry the same number.
The second factor is uncontrolled degrees of freedom. A coincident mate removes three translational DOF; it leaves three rotational DOF untouched. If the assembly is then measured or exported, the remaining rotation is resolved arbitrarily by the solver, and two consecutive recomputes can produce two different orientations for the same part.
Both problems are structural, not cosmetic. They are solved by choosing the anchoring mechanism before the first part is inserted, and by auditing DOF after every mate is added. The rest of this chapter works through that decision and the two workflows that implement it.
Cause
A2plus solves a system of geometric constraints at document level. Each mate contributes equations, and the solver iterates until residuals fall under tolerance. Placements are stored as numeric offsets, which means the assembly is a snapshot of a solution rather than a definition. Assembly4 does not run a solver at load time at all. Parts are bound through Local Coordinate Systems (LCS) and driven by the expression engine, so every placement is a computed value derived from named references.
That single difference explains everything downstream. Solver-based assemblies handle mechanisms and angled fits well but degrade when constraint networks become over-determined. Expression-based assemblies are deterministic and configuration-friendly but require disciplined datum placement, because an LCS attached to the wrong sketch origin propagates the error to every instance that references it.
Neither workbench is a replacement for the other. The defect appears when a team mixes both inside one container without documenting which parts are solver-driven and which are expression-driven. The simulation chapter covers the downstream consequence of that mix when loads are transferred to a kinematics and FEM study.
Solution
Classify the model first. If the assembly has moving joints — a linkage, a hinge, a slider, a rotating shaft — it is a mechanism, and a constraint solver is the correct instrument. A2plus gives you a DOF counter and a solve report that tell you immediately whether the mechanism is fully defined or floating. If the assembly is a static product structure with many variants — enclosures, brackets, frames, fixtures — it is a configuration problem, and Assembly4 with LCS anchors plus a spreadsheet is the shorter path.
For mixed projects, keep the boundary explicit. Solve the moving sub-assemblies in A2plus, save each as its own document, and insert the solved sub-assembly into an Assembly4 structure as a single rigid part. The top level then stays deterministic while the joint behaviour stays inspectable. Document the boundary in the assembly tree with a prefix, otherwise the next engineer will add a solver mate to an expression-driven container and lose a day.
Finally, enforce a single source of truth for dimensions. A spreadsheet alias referenced by expressions is the cheapest form of optimisation available: change one cell, recompute, and every part and mate follows. This is the same principle that keeps a TechDraw drawing set consistent with the model instead of drifting from it.
Workflow A
The Assembly4 sequence is short but order-sensitive. Datum placement happens inside the part document, attachment happens inside the assembly container, and every offset is written as an expression rather than a typed number.
Create an LCS at each mounting interface, aligned to the mating surface normal. Name it by function, not by index: LCS_BearingSeat survives a rebuild, an index does not.
Insert the parts into a single Assembly container with one Model. Keep the tree flat at the top level and push detail into sub-assemblies — a flat tree of 200 parts is unreadable and slow to recompute.
Bind the child LCS to the parent LCS and write the offset as an expression referencing the master spreadsheet. A hardcoded 12.5 mm is a future defect; Spreadsheet.Gap is a parameter.
Use Variant Links to produce left-hand and right-hand versions, or short and long frame variants, from one part document. This replaces duplicated files and the divergence they always cause.
Run a dependency check before export. Any attachment pointing to a generated face rather than a datum is a flagged item — fix it while the tree is small, not after the drawing set is issued.
A deterministic assembly projects cleanly into projection groups. The TechDraw 2D drafting chapter covers view alignment and balloon numbering for this exact case.
Workflow B
A2plus works on imported part documents and resolves mates numerically. The workflow is iterative: add one mate, solve, read the DOF counter, repeat. Adding five mates and solving once hides the error that caused the failure.
Keep parts as separate files and import them as links. Editing the source document propagates on the next import refresh, which keeps the assembly in step with the part design instead of freezing a stale copy.
Use plane-coincident for flat interfaces, axis-coincident for shafts and bores, and angle mates for brackets. Solve after each addition and record the resulting DOF value in the assembly notes.
Sub-assemblies that reference each other produce solver oscillation: the residual never converges and the parts visibly jitter between recomputes. Flatten the dependency direction — parent references child, never both ways.
Once the mechanism is defined, freeze the placements you need for downstream work and export a mesh. The additive manufacturing chapter explains tolerance compensation for that exported geometry.
Reference
The table maps common mating situations to the A2plus constraint, the Assembly4 equivalent, the DOF removed, and the failure that appears when the mate is applied to unstable geometry.
| Mating situation | A2plus constraint | Assembly4 equivalent | DOF removed |
|---|---|---|---|
| Flat plate on housing | Plane coincident | LCS attach, normal axis | 3 translation |
| Shaft in bore | Axis coincident | LCS attach, Z aligned | 2 translation, 2 rotation |
| Bracket at an angle | Angle mate plus plane | Rotated LCS plus offset expression | 3 translation, 2 rotation |
| Fastener stack | Coincident plus axis | LCS at hole centre, pattern driven | 6 (fully fixed) |
| Sliding carriage | Plane plus axis, 1 DOF left | Not recommended — use a solver | 5 (1 translation free) |
A fully defined part has zero remaining DOF. Any positive value at the end of the mate list means the placement is arbitrary and will change on the next recompute.
0
solver iterations at load time in an expression-driven Assembly4 container.
6
degrees of freedom to account for on every rigid part before the mate list is closed.
1
spreadsheet alias per parameter — one edit drives parts, mates and drawings at once.
3
levels of nesting that stay manageable in a product structure before the tree needs refactoring.
Reference material only | Compiled from public documentation and engineering practice | Not a substitute for professional design review, certification or safety validation