Shatter a line with few other lines

Hi, I am trying to shatter a strait line (horizontal red line) with other multiple lines (vertical red lines). I want to keep those members shown in a circle at the end of this process as a list. I have developed a script but I am struggling with shattering. I am not sure if I am moving in right direction

P2.gh (11.3 KB)

Hope it helps you out.

P2_re.gh (12.3 KB)

1 Like

Many thanks Kim. That is perfect. My issue was with this shatter component.