Skip to content

About

Claude Code plugin: Fusion CAM toolpaths for copper parts on SchusterLab's Makera Carvera

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

131 Commits

Folders and files

Repository files navigation

SchusterLab Fusion tools

This repository holds carvera-cam, a Claude Code plugin that programs SchusterLab's Makera Carvera to machine copper parts. Open a part in Autodesk Fusion, tell Claude Code what stock you have, and it writes the programs to run on the Carvera, set up the way the lab sets up its own jobs. It picks the tools, the speeds and the order of the cuts, works out how the vise will hold the part, and checks that no cut runs into the vise. The same programs cut aluminum when run at double speed (200% feed and spindle override on the Carvera).

It can also review toolpaths you already have, including ones it made that you have since edited, and points out cuts likely to break a tool, stall the spindle or crash the machine, cuts into the part, and faces left uncut.

Install

In Claude Code:

/plugin marketplace add SchusterLab/fusion-carvera-cam
/plugin install carvera-cam@schusterlab-fusion

The skill drives Fusion through the Fusion MCP server, so Claude Code needs that server connected, and Fusion must be running and signed in.

  • Tools come with the skill, in assets/carvera-tools.json: only the tools it assigns, to buy from Makera and McMaster-Carr. From Makera: the Spiral O Metal end mills of 1 to 3.175 mm and the 6 × 17 mm one, the M2 to M4 thread mills and the 1/8″ chamfering bit. From McMaster-Carr: all 122 uncoated expanded-shank carbide drills, 0.152 to 3.175 mm. Each has a Copper feed preset.
  • The machine and post processor are the latest Carvera 3-axis machine and Carvera.cps in the Carvera Community profiles, which the skill downloads. The first build uploads the machine's 3D model to a Fusion project named carvera-cam in your hub, so that simulation shows the machine.
  • The fixture plate and vise are Saunders Machine Works' published models of the Carvera fixture plate, the Gen3 hobby mod vise and its smooth insert bars, which the skill downloads from saundersmachineworks.com and assembles as the lab mounts them.

Use

Ask Claude Code, for example, "Generate Carvera toolpaths for my-part in copper, from a 2-inch bar 0.25 inch thick". The skill opens the part, reports the features it recognized, asks whether the stock has the part's own size and thickness and, if not, its dimensions, tells you the machining strategy that follows, confirms any tapped holes with you, builds the setups and generates the toolpaths. It then checks the toolpaths three ways: with its rule-based checker, by reading the G-code and screenshots, and by Fusion's own simulation, whose leftover stock it compares with the part. Where a check finds a problem, it fixes the skill and offers the fix to this repository as a pull request, once you agree. Once every toolpath is valid, it writes the G-code to Fusion's NC Programs folder, as .cnc files named with your initials, such as YS_my-part_top.cnc. It writes them again whenever the toolpaths change, and it does not save the document unless you ask.

When a part needs flipping and the stock is sawn, the skill suggests squaring the stock first, so that you can indicate to its corners after the flip. You can also ask for it directly, for example "Square the corners of 202 ± 1 × 155 ± 1 × 15.9 mm stock to 200 × 152 mm". It asks which edges the vise clamps, then writes a one-setup program that cuts the four corners square and to size and leaves the clamped edges' middles as sawn.

To check toolpaths you already have, open the part and ask, for example, "Check the Carvera toolpaths in my-part". The skill lists every finding with its rule, from out-of-date toolpaths and cuts below the stock to feeds above the lab's, and references/rules.md explains each rule.

Contents

Path What it is
plugins/carvera-cam/skills/carvera-copper-cam/SKILL.md the skill's instructions
.../references/conventions.md the lab's CAM conventions the generator applies
.../references/rules.md the rules the toolpath check applies, with their thresholds and evidence
.../references/threads.toml how the lab pre-drills and thread-mills M2 to M4 tapped holes
.../references/review.md how to judge toolpaths by reading their G-code and screenshots, the written counterpart of the check
.../references/simulation.md how to check toolpaths by Fusion's simulation: the issues it flags, and the stock it leaves against the part
.../assets/carvera-tools.json the tool library: Makera's end mills, thread mills and chamfering bit, and McMaster-Carr's drills
.../assets/mcmaster-expanded-shank-carbide-drills.csv McMaster-Carr's table of expanded-shank carbide drills, which the library's drills are made from
.../scripts/carvera_cam.py the generator, run inside Fusion's Python: analyze, build, generate, and square, which squares sawn stock
.../scripts/check_cam.py the toolpath check, run inside Fusion's Python: check, and summary, for comparing two builds
.../scripts/sim_check.py starts and stops Fusion's simulation of a setup, writes the part as an STL, and compares the simulated stock with it (the comparison runs with plain Python too)
.../scripts/sim_ui.ps1 drives the open simulation on Windows: reads its Issues panel and saves its stock as an STL
.../scripts/tool_library.py builds the tool library from Makera's tool files and McMaster-Carr's table, with the presets; run with plain Python
.../scripts/fusion_restart.ps1 tells whether Fusion is busy, hung or crashed, and restarts it without the crash-recovery window that blocks every call
.../scripts/dump_cam.py dumps a project's existing CAM setups to JSON, for re-learning the conventions
.../scripts/make_test_part.py builds test parts, one with one of each feature, one with pockets open to the side and one with a floor open on every side round islands, for testing changes

Limits

The generator handles 2.5-axis parts: pockets, holes, tapped holes, through windows and outlines, all reached along Z from the top or the bottom. Pocket corners finish at the radius of the smallest end mill that fits. SKILL.md lists the remaining limits.

About

Claude Code plugin: Fusion CAM toolpaths for copper parts on SchusterLab's Makera Carvera

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages