gcode_write — PRINTPATH gcode op

• Data kinds: table × text → text

• Call: import fullseye as fs; fs.ledger.gcode_write(table: 'Any', path: 'str', layer_tags: 'bool' = True) -> 'str' (to call the implementation directly, import printpath; printpath.gcode_write(table: 'Any', path: 'str', layer_tags: 'bool' = True) -> 'str'; from the registry, opsprintpath.get("gcode_write"))

Usage

Writes a table of line segments to G-code (G21 / G90 / M82, G1 with absolute coordinates and absolute E). Returns the path written (text).

Round-trips with gcode_read (layers are written as ;LAYER:n). Travel-only segments do not advance E.

Detailed usage guide

• printpath family guide

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_print_layer_inspection — py -3.11 examples/poc_print_layer_inspection.py

Ops the type connects to (they accept text as input)

gcode_read · read_3mf · write_3mf

Same category (gcode)

gcode_read · gcode_extrusion_volume · gcode_time_estimate · gcode_layer_image


*Provenance: printpath.py — PRINTPATH operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.