First time here? Check out the Help page!
1 | initial version |
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