I am trying to create a list of all points from a selection of lines. This seems like it should be simple to do by just getting the start and end points of every line, but this causes duplicate values and I’m not sure how to sort them in a way that isn’t extremely convoluted. For the example provided, selecting the 6 curves should ideally only yield 6 points as an output.
If you don’t care about the order, you can just use CullPt on the full list of segment ends to get rid of duplicates.
If you do need them sorted, and your input is a list of touching line segments, the easiest way is to join them into a polyline and Explode it.
One thing to watch out for with this is that for a closed polyline, the point at the start and end appears twice in the V output, so if you want a sorted duplicate free list of points you can use the start points of the S segments output.