Machine Selection

Before exporting, select the machine controller that will run the G-code. The machine selection determines the post-processor — the dialect of G-code, units, and header/footer format that the output uses.

Select the Project node in the feature tree. In the properties panel, find the Machine dropdown and choose your controller.

Built-in machine definitions include Grbl, GrblHAL, LinuxCNC, Mach3, and UCCNC. You can also add custom machine definitions by clicking Add machine and providing a JSON definition file.

Clearance Settings

The following project-level settings affect the generated G-code:

SettingDescription
Safe ZThe Z height for rapid moves between operations. The tool retracts to this height before any rapid traverse.
Op Clear ZThe Z height for rapid moves within an operation (between passes and between features).
Clamp Clear XYHorizontal clearance around clamp boundaries.
Clamp Clear ZAdditional Z clearance above clamp height on rapid moves over clamps.

Export Dialog

Click Export in the CAM panel (or use the keyboard shortcut) to open the Export dialog. The dialog shows:

  • A preview of the generated G-code with syntax highlighting.
  • The selected machine and post-processor.
  • A summary of the operations that will be included.

Review the G-code preview before downloading. When it looks correct, click Download to save the .nc file.

screenshots/cam-export-dialog.png
Export dialog showing G-code preview and download button
Always verify before cutting. Review the G-code in your machine controller's toolpath display or run a dry cycle with the spindle off before making contact with material.

What Gets Exported

Only operations that are both enabled and have their toolpath visible are included in the G-code export. Operations with Enabled unchecked are skipped entirely.

Operations are exported in the order they appear in the operations list. Reorder them by dragging in the CAM panel before exporting.

Features that are hidden in the feature tree are excluded from toolpath calculations and therefore from the export.

Operation Booklets (PDF Setup Sheets)

Alongside the G-code, you can export a printable setup sheet for any single operation. Select an operation in the CAM panel, then in its parameters find the Booklet field and click Export PDF. The app builds a one-operation PDF you can keep at the machine or hand off with the job.

Each booklet gathers everything you need to set up and run that operation:

  • Project and operation name, a description of what the operation does, and the date generated.
  • Units, machine origin (Z) summary, and stock size.
  • The target features the operation cuts.
  • Tool details and the operation's feeds, speeds, and stepover/stepdown settings.
  • Toolpath statistics (such as cut length and estimated moves).
  • A snapshot image of the toolpath, and any warnings detected for the operation.

Booklets are exported one operation at a time — the file is named <project>_<operation>_booklet.pdf. Export a booklet per operation to assemble a full job packet.

screenshots/cam-operation-booklet.png
Operation booklet PDF — setup sheet with tool, feeds/speeds, toolpath stats, and a toolpath snapshot

Custom Machine Definitions

If your machine controller is not in the built-in list, you can add a custom definition. Click Add machine in the Project properties panel and select a JSON file containing the machine definition. If a file fails validation, the specific problems are shown inline so you can fix them — there is no longer a blunt error alert.

The easiest way to start a custom definition is from inside the app: Duplicate a built-in machine that's close to your controller, Edit the copy, then Export it if you want a JSON backup. That always produces a definition matching the current schema — see below.

Editing Machines In-App

You don't have to hand-edit JSON in an external editor. Select a custom machine and the Project properties panel exposes three actions:

  • Edit — opens a machine editor dialog. A focused form covers the fields you change most often (name, description, file extension, units commands, program header/footer, and so on); an Advanced tab gives you the raw JSON as an escape hatch for anything the form doesn't surface. Both views validate live as you type and flag invalid values immediately, so you can't save a broken definition.
  • Duplicate — clones the selected machine (including a built-in) under a new id and name, giving you a custom, editable starting point that matches a controller you already have.
  • Export — writes the current definition back out to a JSON file to share or back up.
screenshots/cam-machine-editor.png
Machine editor dialog — focused form fields with the Advanced (raw JSON) tab and live validation
Tip: The quickest way to make a tweaked variant of a built-in profile is Duplicate it, then Edit the copy — you start from a known-good definition instead of a blank template.

Field Reference

FieldDescription
idUnique identifier string. Must not clash with built-in IDs (generic, grbl, grblhal, mach3, linuxcnc, uccnc).
nameDisplay name shown in the Machine dropdown.
descriptionShort description shown in the UI.
vendorOptional vendor name.
builtinMust be false for custom definitions.
fileExtensionOutput file extension, e.g. nc, tap, gcode.
coordinateSystemMaps internal X/Y/Z axes to machine axes. Use -X etc. to invert an axis.
numberFormat.decimalPlacesDecimal places for coordinates. Can be a single number or separate mm/inch values.
numberFormat.trailingZerosWhether to pad numbers with trailing zeros.
numberFormat.leadingZeroWhether to include the leading zero on numbers less than 1.
units.mmCommandG-code command to select millimeter mode, e.g. G21. Set to null to omit.
units.inchCommandG-code command to select inch mode, e.g. G20. Set to null to omit.
program.headerArray of lines emitted at the start of the file. Supports tokens: {programName}, {date}, {unitsCommand}, {wcsCommand}.
program.footerArray of lines emitted at the end of the file.
program.commentPrefix / commentSuffixCharacters that wrap comments, e.g. ( and ) for Mach3, or ; and for inline comments.
program.lineNumbersWhether to prefix each line with a line number (N10, N20, …).
workCoordinates.selectCommandWork coordinate system command, e.g. G54. Set to null to omit.
motion.arcFormatij for center-offset arc format (most controllers), or r for radius format.
motion.modalMotionIf true, the motion command (G0/G1) is omitted when it hasn't changed since the last move.
feedSpeed.inlineWithMotionIf true, F and S words are emitted on the same line as the motion command.
feedSpeed.modalFeedSpeedIf true, F and S are omitted when unchanged.
toolChange.commandsArray of lines emitted on a tool change. Supports {toolName} token.
cannedCyclesDrill cycle commands. Set to null if your controller does not support canned cycles — drilling will fall back to explicit G0/G1 moves.
coolantCoolant on/off commands. Set to null if not used.
stop.programEndCommandCommand emitted at the very end of the file, e.g. M30 or M2.

Custom machine definitions can be removed by selecting the machine in the dropdown and clicking Remove machine. Built-in definitions cannot be removed.

Click Refresh (the refresh icon next to the Machine dropdown) to reload machine definitions if you have updated a definition file externally.