Exporting G-code
Once you're happy with your design, click "Download G-code" to save the file.
How Export Works
G-code export uses a two-step process:
- Generation: When you click export, 3dSynth generates the full toolpath (not just the preview). This can take longer than preview generation, especially for complex designs.
- Download: Once complete, the G-code file is saved to your chosen location.
Export Blocking Conditions
Export may be blocked if:
- Blocking warnings exist — Critical issues like invalid temperatures, machine limit violations, or NaN values must be resolved first. Check the warnings panel. See Warnings reference for a list of warnings and how to fix them.
- Generation failed — If the worker crashes or produces an error, export is disabled until you fix the issue.
- Generation in progress — Wait for the current generation to complete.
Desktop vs Web Export
| Platform | Behavior |
|---|---|
| Desktop (Electron) | Native save dialog lets you choose the file location. Supports large files (up to 100MB). |
| Web Browser | Browser download — file goes to your Downloads folder with an auto-generated name. |
Export Progress
During export, you'll see:
- A progress indicator while G-code is being generated
- Toast notifications showing status (generating, complete, or error)
- The G-code inspector panel shows the generated code when complete
Bambu Studio Export
When a Bambu Lab printer is selected (X1 Carbon, P1S, P1P), 3dSynth automatically makes the Bambu Studio G-code the primary export option. This generates G-code specifically formatted for Bambu Studio and Bambu Lab firmware.
How It Works
The Bambu export takes the standard generated G-code and converts it into a Bambu Studio compatible format:
- Layer markers use Bambu's
; CHANGE_LAYER/; Z_HEIGHT/M991format instead of standard;LAYER:N - Feature annotations (
; FEATURE: Outer wall,; LINE_WIDTH:) are added so Bambu Studio can render the toolpath - Firmware commands like
M981(spaghetti detection),M1003(power-loss recovery), andM73(progress tracking) are included - Startup/shutdown G-code from the printer profile is fully resolved (template variables like
{nozzle_temperature}are evaluated)
Export Options
Both export formats are always available in the toolbar dropdown:
| Printer Selected | Primary Button | Secondary (in dropdown) |
|---|---|---|
| Bambu Lab | G-code (Bambu Studio) | G-code (standard) |
| Any other | G-code (standard) | G-code (Bambu Studio) |
Compatibility
| Target | Standard G-code | Bambu Studio G-code |
|---|---|---|
| PrusaSlicer | Yes | No |
| Bambu Studio | No | Yes |
| Creality Print | Yes | No |
| OrcaSlicer | Yes | Partial |
Before Printing
- Verify your printer settings match your actual printer
- Check the estimated print time and filament usage
- Preview the G-code in your slicer software if desired
- Ensure your bed is level and clean
Troubleshooting
Export button is disabled?
- Check the warnings panel for blocking issues
- Wait for any in-progress generation to complete
- Ensure your design has a valid profile (not flat)
File is too large?
- Reduce the total height
- Use lower resolution settings
- Simplify effects (fewer high-frequency patterns)