Room number to all elements

Hello,

I need to insert a room number into all the elements. I only know categories like “Furniture, Electrical equipment,…” But I need floor, ceiling and other. Can you help me? I send my script.

This rooms have Base Offset -150, so floors are in rooms.

Thanks

Install the right version of ArchiLab and you can utilize the “GetRoomATPoint” node. It takes any point (ie the mid point of a floor, or 3" off the face of a wall) and returns the room at that point (assuming there is one).

Be careful though, as some floors may have a center point outside of their sketch, and others may span multiple rooms. Sampling multiple points near the perimeter curves is likely a good call rather than one point as this can help mitigate such issues.