How to count windows just outside/near ares?

I’m trying to give windows a value based of a “nearby” (apartment) area, but I can’t get it to work.

I have figured out have to give elements values that are inside the area but not just outside.

Is there anyone how has any tips how to do it?

Anton

Merge the areas into a single solid with a Solid.ByUnion node.

Then use a Geometry.ClosestPointTo node to find the point on the unioned solid closest to each window.

Then use a Geometry.DoesIntersect node to find which area the closest point intersects with.

Or alternatively, use the from room or to room value after enabling room calculation points in your window family and circumvent the need for any of the geometry calculations.

5 Likes

Here is an alternative example for windows in spaces, but should be the same for rooms and areas

2 Likes

Thanks both solutions worked… but I went with this one!!!

1 Like