Post G-code
Post reviewed CNC toolpaths for GRBL, Mach3 or LinuxCNC.
- Ribbon: Subtractive › Export
- Guide: Manufacturing
In the app
Writes one G-code program from all the machining toolpaths. Set your machine's work zero (G54) at the corner this tells you about. Always run the first part in the air or on scrap.
How to use
- Choose Post G-code. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
- Adjust the settings and check the preview in the viewport.
- Use the panel buttons as needed: Save G-code.
- Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.
Settings
| Setting | Default | Values |
|---|---|---|
| Machine | GRBL (hobby routers and mills) | GRBL (hobby routers and mills), Mach3, LinuxCNC |
| Work zero (G54) | Saved CAM setup | Lower-left corner of the model, top surface, The model's own origin, Saved CAM setup |
| Save to (blank = Documents\Prism\GCode) | Text |
Script it
Command name cnc_post. See Python scripting and the command reference.
python
import cadkit as cad
cad.run("cnc_post", machine="GRBL (hobby routers and mills)", work_zero="Saved CAM setup")