First time here? Check out the Help page!
1 | initial version |
Here is a method that you pass a surface into. It returns true if conditioned, false if not.
def is_surface_conditioned(surface)
# Not conditioned if not in a space
return false unless surface.space.is_initialized
space = surface.space.get
# Not conditioned if space has no zone
return false unless space.thermalZone.is_initialized
zone = space.thermalZone.get
# Not conditioned if zone is not conditioned
return false unless zone.isConditioned
# Must be conditioned
return true
end