Partial gcode generation