Page 1 of 1

assigning apache systems

Posted: Fri Apr 17, 2020 2:10 pm
by PCully
question from a user

# the Real building stores generic data

# so ask for generic room data

# parameter values:

# 0: generic room data

# 1: NCM compliance room data

# 2: PRM data



room_data = body.get_room_data(1)

room_general_data=room_data.get_general()



room_data.set_apache_systems(data) = my_sys['ID']

I have just a couple of questions:

Q:1 - Is it correct to apply “set.apache_systems()” to get.room.data() as shown above?

Q:2 – What is data to pass to the function? What expression do I use to assign the dhw_system?

Below is what I gather from the user guide: hence to set the dhw_system I simply do data=’dhw_system’?

Re: assigning apache systems

Posted: Mon Apr 20, 2020 8:55 am
by Rhind
The data parameter should be a dictionary. You want to do something like the following:

Code: Select all

data = {"dhw_system" : my_sys['ID']}
room_data.set_apache_systems(data)