GCode generated by Grasshopper to free print

I am trying to figure out how to do a cage strucure like this however i cant figure it out for the life of me to make a sensible repeating pattern. Pls help

Attach your file that contains you Brep

Grashopper heplp.gh (8.1 KB)
Sorry I forgot I meant to do that

Hi . I was busy so I couldn’t upload sooner . This is my approach for the first image :


Pattern_01.gh (17.7 KB)

Thank you very much!!!
Would you mind attaching your .gh file?

I attached now

For the second one :
( If you want to have every row separately , remove the gray group and connect the clean tree output directly to Multipipe )



Pattern_02.gh (25.6 KB)

Any slicing script is going to need the continuous printing path (curve) instead of a volume. Good job though. I am always impressed by how fast you are.

How can I pass the model to Gcode since the movements are moving on the Z axis