Set Ceiling Height from floor finish to Room height parameter

Hi, everyone.
I have some floors, six on this particular level.
On the same level. I have seven ceilings at different heights.

Finally, I have twelve rooms connecting those floors and ceilings.

My problem seems to be in matching the setting the parameter of the ‘height offset from level’ parameter for both the ceilings and floors (subtracted to get the ceiling height) to the rooms connected to the relevant floor.
Any help would be gratefully received. Stuck at an impasse at the moment.
I would have included an image of my dynamo file, but as a new member, it seems i can only upload one image.