How to make Continuous Diagonal Polylines across a Grid?

Hi All

I am trying to make continuous diagonal polylines across a square grid. I am using Relative Item but the result only yielded fragmented pieces of diagonal lines which isn’t what I am looking for (please see attached script)Continuous diagonal lines.gh (21.3 KB)

Would anyone know how to go around this please?

Thank you very much in advance!
Kind regard
Yutaka

Try to use Join Curves right after Line.

Hi Kim

Thank you very much that’s exactly what I wanted! Much appreciated!

Kind regards
Yutaka