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

Revision history [back]

The measure wants the Climate Zone to be specified per the 2006 standard. I'll update it to take 2006 or 2013, but use 2006 for now.

# get the climate zone
climate_zone_obj = model.getClimateZones.getClimateZone("ASHRAE", 2006)
if climate_zone_obj.empty()
  runner.registerError("Please assign an ASHRAE climate zone to the model before running the measure.")
  return false
else
  climate_zone = "ASHRAE 169-2006-#{climate_zone_obj.value}"
end