Mutiple getitematindex from list count

Hi all,

I’m trying to create line from nodes based on a list and multiple get itematindex node. As you can see from the attached image I’ve managed to create a line from the nodes from adjacent arch’s by using the getitemfromindex node to give me the start and end points. Now, I could keep using this method to create lines between all the arches but this is long winded and I would have add new list.getitematindex nodes each time I add another arch.

What I’d like to do is to write a code produces these lines to all of the arch’s based on a list count which would be the number of arches. Is this possible?

Thanks in advance

Regards

Hi @James_Washbourne ,

I’m not 100% sure I understood what you’re trying to achieve, but here’s a proposition:

you could create number ranges to get all the indices you need:

Or - better I think - you could use polycurve.bypoints then explode it

Mostafa,

Thank you for this, it worked a treat!

Regards