Fusion360 add-in for creating mortise and tenon joints.
Find a file
2026-11-12 06:59:57 -07:00
MortiseAndTenon make parametric 2026-11-12 06:59:57 -07:00
tests make parametric 2026-11-12 06:59:57 -07:00
tools make it so agent can test 2026-10-05 06:49:49 -06:00
.gitignore make it so agent can test 2026-10-05 06:49:49 -06:00
README.md make parametric 2026-11-12 06:59:57 -07:00

Mortise & Tenon — Fusion add-in

Cuts mortise and tenon joints between two butted boards. Tenons grow out of a face on one board and matching mortises, oversized by a clearance, are cut into the other. The joint is a re-editable custom feature: double-click it in the timeline to change its values. Dogbones are cut so the joint can be made on a CNC router. See plan.md for the full spec.

Install

  1. In Fusion: Utilities → Add-Ins → Scripts and Add-Ins (Shift+S).
  2. On the Add-Ins tab, click + and pick the MortiseAndTenon/ folder of this repo.
  3. Select MortiseAndTenon and click Run (tick Run on Startup if you like).

The Mortise & Tenon command appears in Solid → Create and Solid → Modify.

Use

  1. Pick the flat face on the tenon board that butts against the other board.
  2. Pick the mortise body (the other board).
  3. Adjust the values, which are filled in from the face:
    • Tenons: count (default 2). Tenons always run the board's full thickness.
    • Edge margin: distance from each end of the face (default: board thickness).
    • Tenon width: size along the face. The default makes tenons and gaps equal, and it's refilled when you change the count or margin.
    • Through: tenons go flush through the mortise board. Untick for blind tenons and set Depth (default: half the mortise board).
    • Clearance: added to every mortise wall, and to a blind mortise's depth (default 0.005").
    • Dogbone diameter: the bit size you'll cut with (default 0.26", for a 1/4" bit with a little room). Each mortise corner gets a "minimal" round relief on its 45 degree line: it misses the very corner by 10% of its radius, so the tenon corners crush in for a tight fit (raise Clearance to loosen it; MINIMAL_DOGBONE in joint_geometry.py sets the 10%). Each tenon gets a full half-round notch in its side where it meets the shoulder, hidden inside the mortise. Set it to 0 for square corners.
  4. To change the joint later, double-click Mortise & Tenon in the timeline. Upstream changes (for example a thicker mortise board) regenerate it.

How a joint is built

A joint is ordinary sketches and extrudes grouped in the custom feature: a tenon sketch, a mortise sketch (with the dogbones), the tenon extrude, the shoulder notches, and the mortise cut. Every size is a dimension driven by one of the joint's parameters, so value changes, and changes upstream, are recomputed by Fusion and the joint's faces keep their identity. CAM toolpaths and later features that use those faces keep working.

Changing the tenon count, Through, or turning dogbones, clearance or edge margins on or off rebuilds the joint (its faces are new, so reselect them in CAM). Do those through the joint's dialog: changed in the Parameters dialog, the joint reports an error asking you to edit it.

Joints made by earlier versions (a base feature with tool bodies) still work, but replace their faces on every recompute. Editing one rebuilds it the new way.

Development

  • python3 -m pytest tests runs the geometry unit tests (no Fusion needed).
  • To test inside Fusion, add and run the dev-only tools/FusionBridge add-in (Scripts and Add-Ins → +), then python3 tools/fusion_run.py reload tests/fusion/joint_cases.py. That reloads this add-in and runs end-to-end cases in scratch documents. FusionBridge runs whatever scripts land in .bridge/requests/, so stop it when you're done.
  • The add-in appends every error it reports to MortiseAndTenon/debug.log.