Nozzle Notes
Slicers & software

Orca Slicer Export Gcode: Save Projects and Files

Slice a plate, export G-code, save a 3MF project and export an STL in OrcaSlicer 2.4.2, with the real menu names and a look at the files each one creates.

By Sepehr Sabbagh-pour · Published · 5 min read

OrcaSlicer 2.4.2 Preview tab after slicing the overhang test part, with the Export G-code file button active
Photo: Sepehr Sabbagh-pour

Orca Slicer export gcode is a two click job: click Slice plate, then Export G-code file. This lesson, tested in OrcaSlicer 2.4.2 on macOS, shows that flow, the File menu entries for saving and exporting, the Save dialogs, and what files land in your folder. We exported but did not print.

How do you export G-code in OrcaSlicer?

We started on the Prepare tab in Simple mode with the Creality Ender-3 V3 SE, Creality Generic PLA and the 0.20mm Standard process preset. The overhang-t test part from our previous lesson on the Calibration menu was on the plate. Before slicing, the Export G-code file button at the top right was greyed out. That makes sense, because there is nothing to export yet. G-code is the instruction file the printer reads, and our guide what is G-code explains it.

We clicked Slice plate. OrcaSlicer switched to the Preview tab, the Slice plate button went grey, and Export G-code file became active. The layer slider read 120 layers and 24.00 mm. A warning also appeared saying the object has a floating cantilever, because our test part overhangs and we had not turned supports on. That is expected for this part and not a failure.

Next to the export button there is a small arrow. Clicking it opened a short list with two entries, Print and Export G-code file. We did not click Print, because we have no printer connected and did not want to send anything. We only read the label.

The drop down beside Export G-code file in OrcaSlicer 2.4.2 listing Print and Export G-code file
The drop down beside the export button lists Print and Export G-code file. OrcaSlicer 2.4.2, screenshot taken 18 October 2026. Photo: Sepehr Sabbagh-pour

We then clicked the main Export G-code file button. A macOS Save dialog opened with the prompt Save G-code file as:. The suggested name was overhang-t_PLA_16m54s. It is built from the model name, the filament type and the slicer's own time estimate of 16 minutes 54 seconds. The Where field began in the folder we used last, so look at it before you press Save. We typed a path with Cmd+Shift+G to choose a scratch folder, then pressed Save.

OrcaSlicer macOS Save dialog titled Save G-code file as, with a default file name ending in a print time
The Save dialog titled Save G-code file as, pointed at our scratch folder. Photo: Sepehr Sabbagh-pour

When the export finished, a green notice at the bottom right read Exported successfully with an Open Folder link and the full path. A second dialog titled warnings then repeated the floating cantilever message with an OK button. It blocks the window until you click OK, so do not be surprised by it.

OrcaSlicer notifications reading Exported successfully with the output path, above a floating cantilever warning
The Exported successfully notice, with the cantilever warning above it. Photo: Sepehr Sabbagh-pour

What does the File menu offer for saving and exporting?

These are in the macOS menu bar, not inside the window. We read the File menu directly. Its entries are New Window, New Project, Open Project, Recent files, Save Project, Save Project as, Import, Export, Sync Presets and an item named Preset Bundle, separated by dividers. We did not open that last item, so we cannot describe it.

The Export sub menu has ten entries in this build, in this order:

  • Export all objects as one STL
  • Export all objects as STLs
  • Export all objects as one DRC
  • Export all objects as DRCs
  • Export Generic 3MF
  • Export plate sliced file
  • Export all plate sliced file
  • Export G-code
  • Export toolpaths as OBJ
  • Export Preset Bundle

Menu items for the sliced entries were all enabled once the plate was sliced. We did not check which ones are disabled before slicing, and we did not try the DRC, Generic 3MF, toolpaths or Preset Bundle exports.

What is the difference between saving a project and exporting G-code?

We used File, Save Project as. The Save dialog said Save file as, the suggested name was overhang-t, and the file it wrote was overhang-t.3mf. The asterisk in the window title went away afterwards, which tells you the project is no longer modified. A 3MF project holds your model and your settings so you can reopen it and keep editing. See STL vs 3MF vs G-code for the wider comparison.

We also tried two other exports. Export plate sliced file asked Save Sliced file as: and suggested overhang-t_PLA_16m54s.gcode.3mf. Export all objects as one STL showed a dialog headed Export STL file: with the name overhang-t.

OrcaSlicer Save dialog titled Save Sliced file as, with a default name ending in .gcode.3mf
The Save Sliced file as dialog, with a name ending in .gcode.3mf. Photo: Sepehr Sabbagh-pour

Here are the four files that ended up in our scratch folder, read with a file listing afterwards:

FileMade bySize
overhang-t_PLA_16m54s.gcodeExport G-code file315,728 bytes
overhang-t.3mfSave Project as23,454 bytes
overhang-t_PLA_16m54s.gcode.3mfExport plate sliced file70,279 bytes
overhang-t.stlExport all objects as one STL1,284 bytes

The STL was tiny because our part is a simple 24 triangle shape. The sliced 3MF is a zip archive. When we listed its contents it held a plate_1.gcode entry of exactly 315,728 bytes, the same size as the standalone G-code. So it packs the same toolpaths together with the project data, while the plain project 3MF has no G-code in it.

What is inside an exported G-code file?

We only read the file and did not run it. It is plain text with 13,505 lines. The first lines look like this:

;FLAVOR:Marlin
;TIME:1014.51
;Filament used:1.13m
;Layer height:0.2
; HEADER_BLOCK_START
; generated by OrcaSlicer 2.4.2 on 2026-10-18 at 20:34:34
; total layer number: 120
; max_z_height: 24.00

The numbers in the header are the slicer's estimates. The 1014.51 second time is the 16 minutes 54 seconds from the file name. Near the end the file lists filament used as 1130.26 mm, 2.72 cm3 and 3.37 g. Those are estimates and not measured results. The toolpath commands sit between an EXECUTABLE_BLOCK_START line and an EXECUTABLE_BLOCK_END line, and the file finishes with a block between CONFIG_BLOCK_START and CONFIG_BLOCK_END of about 640 lines. That block records the settings used, such as first_layer_height = 0.200, so the G-code carries a copy of how it was sliced. It does not replace the project file for editing.

When you are ready to save your own work, a sensible habit is to keep the 3MF project and export G-code only when you are done. Next lesson, orca-slicer-variable-layer-height, covers changing layer height across one model.

Next lesson: Orca Slicer Variable Layer Height Tool: Smooth Curves.

Frequently asked questions

How do I export G-code in Orca Slicer?

Click Slice plate first. The Export G-code file button at the top right is greyed out until the plate is sliced, and it becomes active afterwards. Click it and a Save dialog titled Save G-code file as opens. OrcaSlicer 2.4.2 suggested a name made of the model name, the filament type and the estimated time, for example overhang-t_PLA_16m54s. Choose a folder and press Save. You can also use File, Export, Export G-code. We exported a file this way, but we did not print it.

Why is Export G-code file greyed out in Orca Slicer?

In our test the button was greyed out on the Prepare tab before we sliced, and it became active right after Slice plate finished. That suggests it needs a sliced plate to export. If it stays grey for you, check that you have an object on the plate and that slicing completed without an error. We only saw the case where slicing succeeded, so we cannot list every reason a button might stay disabled in other setups or versions.

What is the difference between a 3MF project and a G-code file?

A 3MF project from Save Project as keeps your model and settings so you can reopen it in OrcaSlicer and keep editing. Ours was 23,454 bytes. A G-code file holds the toolpath instructions a printer reads, and ours was 315,728 bytes of plain text. The G-code also ends with a copy of the settings, but it is not meant for editing. Keep the project file, and treat G-code as the output you regenerate when needed.

What does Export plate sliced file do in Orca Slicer?

In OrcaSlicer 2.4.2 it asked us to Save Sliced file as and suggested a name ending in .gcode.3mf. The file it wrote was 70,279 bytes. When we listed its contents, it held a plate_1.gcode entry the same size as the plain exported G-code, plus the project settings and preview images. So it bundles the sliced result with the project data. We did not open it in another program or send it to a printer, so we cannot say which printers accept it.

Can I export an STL from Orca Slicer?

Yes. The File, Export sub menu includes Export all objects as one STL and Export all objects as STLs. We tried the first. It showed a dialog headed Export STL file with the name overhang-t and wrote a 1,284 byte overhang-t.stl for our simple test part. We did not test the separate files option, the DRC options or Export Generic 3MF, so we only describe what the menu lists for those.

Sources

Sepehr Sabbagh-pour

Founder and editor

Sepehr Sabbagh-pour

Software engineer since 2009 and Head of Engineering by day, a maker who has owned several 3D printers, writing practical guides to 3D printers, filament and running costs, with every article saying what was and was not tested.

Drafted with AI assistance, then edited and reviewed by Sepehr before it goes live. How we use AI.