Hi, you can see in my script that I defined the closest point from one starting point to all other points that are in the grid.
Now I want to use the Closest Point again and search for the closest point … and again the result…
How to define this searching in a for loop? I am tried it for hours
Thanks a lot for your help!
Maybe this one is better:
poolunused = sum_attractors[:] closestattractor =  dist = 9999999 for n in poolunused: ee = rs.Distance(start_point, n) if ee <= dist: dist = rs.Distance(start_point, n) closestattractor = n