Access Service Hot Water load with python script

Hi - I am trying to access the service hot water load of a given room with the python script options and I cannot figure out the syntax

I am trying this line:

dhw_flow = room_input.properties.energy.service_hot_water.flow_per_area

The script seems to run with no syntax error but theres no output…? See screenshot below.

I can see the program has a hot water definition but for some reason the script line doesn’t pull it out?

Hi @grahamjlinn ,

You have to use the older GHPython component to interact with the objects coming out of the LBT components. Not the new Iron Python component in Rhino 8.

Some more information is here:

1 Like

Thanks Chris! I implemented in GHPython but same issue seems to occur:

Actually I got it to work

I think theres some weirdness with renaming output variables in the GHPython component. I did a few cycles of renaming and testing the script and eventually everything came through. Not sure what might be happening.

1 Like