AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Post G-code ​

Post reviewed CNC toolpaths for GRBL, Mach3 or LinuxCNC.

Post G-code: Post reviewed paths using the controller dialect. This abbreviated program is illustrative, not machine-ready code.
Concept diagram. Post reviewed paths using the controller dialect. This abbreviated program is illustrative, not machine-ready code. View full size

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 ​

  1. Choose Post G-code. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Adjust the settings and check the preview in the viewport.
  3. Use the panel buttons as needed: Save G-code.
  4. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
MachineGRBL (hobby routers and mills)GRBL (hobby routers and mills), Mach3, LinuxCNC
Work zero (G54)Saved CAM setupLower-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")