Find nearest room for an element

@Rune_Haugland You are correct in your assumption, Tool.SurroundingElements uses the “BoundingBoxIntersectsFilter” witch filters out objects that are contained or intersects with the BB. The problem with bounding boxes is that they must be rotated along the global x and y axis. The image below shows two identical beams and columns, but the filter works differently on them because of the rotation:

Have you tried the Geometry.DistanceTo node? Here is an example:

1 Like