Create lines connecting each point from a list

Hi everyone, I am a beginner of dynamo.

I would like to ask how should I create lines that connect all the points in the same list one by one.
Should it be line from start and end point, but how should i split up the points one by one.

Here is my progress and my excel. Thank you for your help.

This is the excel

Polycurve.ByPoints node will do the trick.

1 Like

Thank you for your advice.
However, it automatically connected all the points within the list.
My expected outcome are 1 to 3 or 4 to 10, something like that.
If do so, should i use totally another methods?

Not sure what you mean. List manipulation, but what manipulation isn’t clear. Do you mean point 1 to all of the other points, point 2 to all of the other points, etc?

@eldwinma79 Are you trying to pair points by proximity to create a line or creating a line through the all points based on the next closest neighbour?

Worth a look here for some tips on the last workflow.