Element closest to point

Hei
I have several Elements of category Duct.Accessories in a Space. I am trying to get the Duct.Accessori that is closest to a line endpoint in the same Space. Eks. if i have tree Duct.Accessories i get tree elements from the OUT port of the script.
How can i get the only one that has the closest distance from the line endpoint ?

Please show us what you already have

1 Like

Is there a way of getting the the correct damper (the one that seems to be under the line endpoint.Element nearest point.dyn (27.7 KB)

Element%20closest%20to%20point