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

Revision history [back]

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