2025-03-23 22:15:55 +01:00
2019-01-12 22:39:19 +01:00
2019-01-12 22:39:19 +01:00
2019-01-12 21:41:22 +00:00
2025-03-23 22:15:55 +01:00
2019-01-12 22:39:19 +01:00
2019-01-12 22:39:19 +01:00
2019-01-12 22:39:19 +01:00
2025-03-23 22:15:55 +01:00

GcodeSplitter

Split a Cura generated GCode file into several files.

Tested with GCode files from

  • Cura 3.5.1
  • Cura 4.7.1

Features

  • Split by layer number or layer Z position
  • Each individual GCode file will contain the header code for homing the printer and heating up the nozzle and bed

Requirements

  • Python >=3.9

Usage

  • Edit the __main__ part at the bottom of GcodeFileSplitter.py
GcodeFileAnalyzer.SplitFileAtLayers(
    'test/BigL.gcode',  # Relative or absolute path to gcode file
    ['2.8mm', 300]  # Z heights where to split the file
)
  • The Z position where to split the file can be given in layer number (starting with 1) or in millimeters (value must match an actual layer z position in the gcode file)
  • Execute GcodeFileSplitter.py
    • E.g.: python GcodeFileSplitter.py
Description
No description provided
Readme 229 KiB
Languages
G-code 98.2%
Python 1.8%