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

Revision history [back]

You would probably be better off using pushExtensibleGroup. Meter:Custom is extensible with 2 fields per extensible group so you would need to do something like:

# find the meter you want to modify in the Idf then:
new_grp = OpenStudio::StringVector.new
new_grp  << "res ac cooling coil"
new_grp  << "Cooling Coil Crankcase Heater Electric Energy"
meter.pushExtensibleGroup(new_grp)