Mates
A mate is a permanent geometric relationship between features of two parts. When you move a part, ModuleCAD re-solves the mates and moves the parts connected to it so the relationships stay valid — the furniture stays assembled.
Mate types
| Type | Features | Relationship |
|---|---|---|
| Flush | Face + face | The two faces lie in the same plane, pointing the same way (e.g. the fronts of two doors lined up). |
| Contact | Face + face | The faces lie in the same plane, facing each other (touching). The part can still slide over the face. |
| Offset | Face + face | Like contact, but with a fixed distance between the faces. The distance can be a number or an expression. |
| Align | Edge + edge | Two parallel edges lie on the same line. |
| Fixed | Face + face | A rigid mate: when one part moves, the other makes exactly the same movement. The parts never slide. |
Creating mates
With snap (fastest)
Drag a part until it fits against the other (Snap) and press M. A contact mate is created between the fitted faces.
With the Mate tool
- Activate the Mate tool (key C or the Mate button in the sidebar). The tool bar shows: “Click a face or edge to start a mate”.
- Click a face or edge of the first part.
- Click a feature on the second part (“Pick a feature on a second part”).
- Choose the type under Create mate: — flush, contact, offset, align or fixed. The types offered depend on the features you picked (edges → align).
- For offset, type the distance — a number or an expression such as
shelf_gap * 2— and press Enter or leave the field.
Reset Picks starts the picking over; Exit Mate (or Esc) leaves the tool.
From the context menu
Right-click a part → Add mate from here: the Mate tool opens with the first pick already made.
With the AI assistant
Ask “mate the shelf to the side” — the assistant creates fixed or contact mates. See Editing and viewing.
The Mates panel
The Mates tab in the right sidebar lists every mate in the scene, with:
- the names of the two parts and the type;
- the editable offset field, which accepts a number or an expression (expressions stay bound to the variables and update by themselves);
- the Delete mate button;
- clicking a mate selects both parts, so you can find them.
With no mates, the panel suggests: “Snap two parts together and press M, or use the chain tool to pick two features.”
How mates are solved
- The calculation happens when you release the part (not during the drag).
- Propagation starts from the moved part, which stays still, and follows the mates to the others.
- When a mate is deleted, the rest of the scene is re-solved.
- Parts whose position is held by a formula (a parametric binding) are not moved by the solver.
Mates that can’t be satisfied
If a set of mates contradicts itself — for example, three offsets A↔B = 30, B↔C = 30 and A↔C = 10 — or requires moving a held part, some mates stay unsatisfied:
- The panel shows the alert “N mates cannot be satisfied — The scene is over-constrained. Review or remove the highlighted mates.”
- Each affected mate gets the unsatisfied badge, with the residual error (in mm) in its tooltip.
Mate lines
The lines connecting mated parts can be shown or hidden with Shift+M, with the Show/Hide Mate Lines button on the floating toolbar or from the context menu. The status bar shows the state under Mates.
Mates in modules used in projects
When a module is used in a project, the module’s mates are re-solved with the form’s answers, starting from the module’s reference (“ground”) part. That way, changing a cabinet’s width correctly repositions the mated parts.