Copying "Ceiling Height Offset From Level" to a Room Parameter

Continuing the discussion from Ceiling height to room parameter:

Good morning folks,
Actually, i’m trying to extract “Ceiling Height Offset From Level” for each ceiling, and push those value in a Room_Parameter called “H.SOUS PLAFOND”.
The problem is the Room_Parameter is filled but not with the correct value.

NOTA: I have some rooms they don’t have any ceiling only floor of the level above.”

Is there any solution to fill Room_Parameter with the correct value corresponding to the Ceiling Height Offset From Level for each room ?

Thank you in advance for your help.


Script designed by: @john_pierson

1 Like

Hi,
The graph seems to be correct but, just to be sure, are the number of items inside of the “List.Flatten” node the same amount of the rooms (in “All Elements of Category” node)?

i JUST TRIED THIS AND THE SCRIPT AS IS DOES NOT ALIGN THE CORRECT CEILING WITH THE CORRECT ROOM IT IS IN WHEN IT UPDATES THE PARAMETER. i DON’T KNOW A LOT ABOUT THE INS AND OUTS OF LISTS JUST YET BUT I THOUGHT THERE WAS A WAY TO MAKE THE LISTS MATCH EACH OTHER IN TERMS OF THE ELEMENTS WITHIN THE ROOM. aNY IDEA WHAT MIGHT BE HAPPENING?

iVE INCLUDED MY .DYN FOR REVERSE ENGINEERING.

WIP_Ceiling HGT to Room Tag.dyn (35.5 KB)

Sorry for the CAPS LOCK. It was inadvertent.