assigning apache systems

The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Post Reply
User avatar
PCully
Site Admin
Site Admin
Posts: 1465
Joined: Tue Sep 09, 2008 9:52 am

assigning apache systems

Post 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’?
IES Worldwide Technical Support
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: assigning apache systems

Post 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)
Post Reply