Get nearest level over roof and set to room

Hello, I have used RayBounce to determine a roof and its point over a room and now I want to determine the next level above it, the attica, in order to pass this parameter as the maximum height for a room element.

My approach is to create a plane at every attica level and get the closest point to the roof.

The level name “Attica 1” is the closest level to the roof and i want to assign it to the room “upper limit”.

Unfortunately I don’t know how to change the ClosestPointTo Output to a Level… or is there a easier way?

Thank you for helping me out!

*just saw the node for deleting the plane is not necessary

NearestLevel Node from Genius Loci Package solved my problem.

1 Like