Fastened
A fastened mate locks two parts together: the second connector is placed onto the first and no motion remains. It is the joint for anything bolted, glued or pressed on — a cover on its housing, a bracket on a beam.
| Free motion | none |
|---|
In the viewport
- Click Fastened on the assembly toolbar. The mate dialog opens with its first connector slot armed and every part connector shown as a triad.
- Click the connector on the part that stays put (the driver), then the connector on the part being fastened. The preview snaps the second part into place.
- If it landed upside down, tick Flip. Use Rotate to spin it about the joint's Z and Offset to shift it in the driver's frame.
- Click Apply.

The code behind it
The cover's only connector is the face that lands on the plate:cover.part.js
import { assembly, insert, mate } from 'fluidcad/core';
import { plate } from './asm-plate.part.js';
import { cover } from './asm-cover.part.js';
export const coverAssembly = assembly('cover-assembly', () => {
// The base plate is the anchor: grounded parts never move.
const base = insert(plate).grounded();
// The cover starts wherever it is inserted; the mate places it.
const lid = insert(cover).translate(0, 0, 40);
// Fastened removes every degree of freedom. The cover's underside frame
// is glued face-to-face onto the plate's top frame: origins coincide,
// the two Z axes point at each other, so the cover lies on the plate
// with its holes over the plate's holes.
mate('fastened', base.connectors.top, lid.connectors.bottom);
});
Options
mate('fastened', a, b)
.flip() // second Z along the first instead of against it
.rotate(45) // spin the second part 45° about the shared Z
.offset(20, 0, 5) // shift it 20 along X and 5 along Z of the driver's frame
A fastened mate accepts offsets on every axis. Use them to fasten a part beside a connector rather than on it — a standoff 25 mm from a face centre — without adding a connector for every position.
Face-to-face
Both connectors here sit on the faces that touch: the plate's top and the cover's underside. Face frames point their Z out of the solid, and a mate aligns the two Zs against each other by default, so the two faces meet. The cover's holes land over the plate's holes because both parts drew them at the same sketch coordinates and both frames sit at their face's centre.