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

Revision history [back]

Here's one way you can check whether this object is in the model:

model = OpenStudio::Model::Model.new
model.getObjectsByType("OS:Site:GroundTemperature:BuildingSurface".to_IddObjectType).size # Returns 0
model.getSiteGroundTemperatureBuildingSurface # The model now has this object with default values
model.getObjectsByType("OS:Site:GroundTemperature:BuildingSurface".to_IddObjectType).size # Returns 1