Skip to content

Repository files navigation

fusionmcptest

Procedurally generated 3D-printable deckboxes themed on trading-card artwork, driven through Autodesk Fusion via its MCP server.

v1 status: Riftbound-sized, double-sleeved-capacity deckbox themed on Seal of Insight (Overnumbered). Slide-top closure with pocket magnets, internal rune-deck partition, Seal-motif lid art (two concentric-ring medallions, ornamental frame, corner diamonds, micro-pattern background).

Prerequisites

  1. Autodesk Fusion running, signed in to the Hub the user normally uses.
  2. A Fusion project named exactly claude. Create it manually in the Data Panel → New Project. All generated docs save here.
  3. An MCP client wired to the fusion MCP server (Claude Code).
  4. Magnets to source for assembly: 4× 6mm Ø × 3mm neodymium discs (e.g., N48 grade, ~$0.30 ea).

Generate

# In Claude Code with the fusion MCP server connected:
# 1. Inspect the existing slide-top design (read-only) to harvest interface dimensions
#    -> fusion_mcp_execute(featureType="script", script=<scripts/inspect_existing_deckbox.py>)

# 2. Generate the deckbox
#    -> fusion_mcp_execute(featureType="script", script=<scripts/generate_deckbox.py>)

# 3. Verify visually
#    -> fusion_mcp_read(queryType="screenshot", direction="iso-top-right")

STLs land in out/body.stl and out/lid.stl.

Export for printing (3MF)

For slicing, export to 3MF instead of STL — it preserves part colors and keeps multiple parts as separate, named objects the slicer can arrange individually. In Claude Code, run the /export-3mf skill on a Fusion doc:

/export-3mf deckbox_seal_of_insight_riftbound_4latch_v3

It resolves the document (asking you to pick by id if the name is duplicated), inspects it, and automatically chooses the right output:

  • Mechanism assemblies (e.g. the latching deckboxes) → a single multi-object .3mf with every part reoriented flat and packed onto one print tray (default 250×250 mm). Output: out/3mf/<doc>_print_layout.3mf.
  • Art batches or single parts (combo lids/knobs, the seal) → one .3mf per part with per-face colors preserved. Output: out/3mf/<doc>/<part>.3mf.

Existing colors are preserved by default; ask it to recolor (e.g. "all dark gray") to paint every part one color for a single-material print.

Print recommendations

  • Material: PETG (default). PA6-GF or TPU for exotic cases. No PLA.
  • Layer height: 0.2mm.
  • Walls: 4 perimeters at 0.4mm nozzle (1.6mm shell — plenty given 2.4mm wall thickness in the model).
  • Infill: 15% gyroid is plenty.
  • Supports: lid prints face-down (medallion side up); body prints right-side-up — should not need supports for either if oriented correctly.
  • After printing, install all four magnets with consistent polarity:
    • Body magnets: all same pole facing up.
    • Lid magnets: all opposite pole facing down.
    • Test with a single magnet before gluing. Press one body magnet in, then bring a loose lid magnet near it — the lid magnet should be pulled down. Glue with CA glue and let cure.

Editing the design after generation

The model is fully parametric. In Fusion: Modify → Change Parameters exposes every dimension (card_width, deck_thickness, seal_outer_radius, etc.). Tweak any value and the design regenerates. Re-export STL from File → Export → STL per component, or rerun the generator with new defaults.

Guardrails

The generator scripts include explicit project-name assertions before any write. They will refuse to save anywhere other than the claude project, and they will refuse to delete or overwrite data anywhere. The inspect_existing_deckbox.py script is read-only and always closes with userConfirmedCloseWithoutSave=true.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages