Creation of lines from consequent points in a list


#1

Hi! I am trying to create lines from consequent points in a list. That can be useful when importing points from excel and have to create lines from the points given.

For the moment I have created this, and it is working. But I would like to implement this for an indeterminate number of points, so an indeterminate number of lines will be the output. Anyone knows how I could change the code block so it keeps taking the points two by two till the end of the points list in each case?

Thanks a lot!


#2

You could try something like this:


#3

In addition to @tiagocorradi’s method, you can also make a PolyCurve using PolyCurve.ByPoints if you want all of the lines to be connected.