I just started using Dynamo today, so bear with me if I am babbeling.

I have a list of polylines,

list

[0] list

[0]Polycurve (NumberOfCurves = 3)

[1]Polycurve (NumberOfCurves = 2)

etc…

And I need to extract a list of all of the vertices - including start and end vertex.

So I made a PolyCurve.Curves and got a nice list with all the vertices.

list

[0] list

[0] list

[0]Curve(StartPoint = Point(x,y,z), EndPoint = Point(x,y,z)

[1]Curve(StartPoint = Point(x,y,z), EndPoint = Point(x,y,z)

[2]Curve(StartPoint = Point(x,y,z), EndPoint = Point(x,y,z)

[3]Curve(StartPoint = Point(x,y,z), EndPoint = Point(x,y,z)

[1] list

[0]Curve(StartPoint = Point(x,y,z), EndPoint = Point(x,y,z)

[1]Curve(StartPoint = Point(x,y,z), EndPoint = Point(x,y,z)

[2]Curve(StartPoint = Point(x,y,z), EndPoint = Point(x,y,z)

How can I transform this list into a list of lists of all the vertices once?

list

[0] list

[0] Point(xyz) - this is the startpoints

[1] Point(xyz) - this is the startpoints

[2] Point(xyz) - this is the startpoints

[3] Point(xyz) - this is the startpoints

[4] Point(xyz) - this is the Endpoint of last line

[1] list

[0] Point(xyz) - this is the startpoints

[1] Point(xyz) - this is the startpoints

[2] Point(xyz) - this is the startpoints

[3] Point(xyz) - this is the Endpoint of last line

I expect this needs some Python, and while I do code C++, the Python syntax eludes me.