Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Since this means that I am trying to assign something to a field that is not recognized, I measured the length of the dictionary I got for each type of data and got the following results:

General data No. of fields: 14

Room condition No. of fields: 38

System data No. of fields: 46

This is where it gets interesting… if you open the VE User Guide (in page 82) in all the ‘set’ methods for each of the above the fields you can set (Dictionary keys) are shorter in length:

General data No. of fields: 7

Room condition No. of fields: 31

System data No. of fields: 39

Following that lead I removed all the field that were not recognized and it worked, I am now testing if it does what I wanted.

Note that I found that there is a simpler way to do it:

example:

room_data = body.get_room_data(0)

general_data = { 'field you want to alter': 'new value'}

room_data.set_general(general_data)