Index when compairing two list of points

HI
I have a list with 12 points I have 4 points from with list. I like to know the index of the these 4 points in the 12 point list. List.IndexOf or List.sortByKey dose not seem to work on Points.

Can you Please help

IndexOf should work with points. Are your points exactly the same? Try rounding the XYZ values in both lists and see if you get intended result.

Hello @johanna.ronnerBMXSJ

assuming that the points are not identical here is 2 solution using DistanceTo() method

4 Likes

Brilliant! Thanks.