Fusion 360 Script to automate the CAM process for 2D plates.
- Batch import of STEP/IGS files into the current Fusion design
- Load part dimensions and settings from a JSON configuration file
- Nest parts using Fusion’s 2D true-shape Arrange solver
- Generate CAM setups with stock offsets and WCS from customizable templates
- Delete empty or invalid toolpaths to streamline operations
- Post-process drills and profiles into NC programs via user‑selected folder
- Autodesk Fusion 360 with API support
- The
.cpspost‑processor file for Laguna (path configured inNewNCProgram.py) - JSON config files matching the expected schema (see
test.json)
- Clone or download this repository to your local machine.
- In Fusion 360, open Scripts and Add-Ins → Scripts tab, click ➕ (Add), and select the
FullstackScriptfolder. - (Optional) Check Run on Startup and click Run to execute immediately.
- JSON config (
.json): Must include keys such aswidth,length,height,trueheightmachine(e.g.,"IQ","Swift"),material(e.g.,"Aluminum","Polycarb")
- HSM templates: Update file paths in
lib/SetupGenerator.pyfor.f3dhsm-templatefileslib/NewNCProgram.pyfor the.cpspost‑processor
Run the script from the Scripts and Add-Ins dialog. It will:
- importStep: Prompt to select and import STEP/IGS files
- importJSON: Prompt to select a JSON config and load data
- AutoArrange: Arrange imported parts on a 2D plane
- SetupGenerator: Create CAM setups and apply HSM templates
- DeleteToolpaths: Remove empty or invalid toolpaths
- NewNCProgram: Post-process and save NC programs to a chosen folder
FullstackScript/
├── FullstackPrototype.py # Entry point: orchestrates the pipeline
├── lib/
│ ├── AutoArrange.py # 2D true-shape nesting
│ ├── importStep.py # STEP/IGS import
│ ├── importJSON.py # JSON configuration loader
│ ├── SetupGenerator.py # CAM setup & template application
│ ├── DeleteToolpaths.py # Cleanup invalid toolpaths
│ ├── NewNCProgram.py # NC program post-processing
│ └── templates/
│ ├── AluminumIQ.f3dhsm-template
│ ├── AluminumSwift.f3dhsm-template
│ ├── PolycarbIQ.f3dhsm-template
│ └── PolycarbSwift.f3dhsm-template
├── test.json # Example JSON config
└── LICENSE # GPL‑3.0 License
- Autodesk Fusion 360 API and sample code
- Portland CNC’s JSON import and STEP utilities
Distributed under the GPL‑3.0 License. See LICENSE for details.