Generating g-code linear interpolation and Arcs follow up

This is a follow up to the question I posted a few months ago here:

this script identifies both the linear interpolation and the Arcs, but what I need now is to properly combined the two so the straight lines can utilize G01 and the Arcs can utilize G02.
Slicer Lines and Arcs Test.gh (47.5 KB)

Thank you in advance

Try this:


Slicer Lines and Arcs Test.gh (13.8 KB)

And double, triple check everything is good before starting a machine with this :sweat_smile:

2 Likes

Might be helpful:

usually you not only need G01, G02 and G03 but some more … M…
G06 would be nice, if your machine can handle that… never tried that myself…