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

Revision history [back]

You can case the ConstructionBase to a Construction by using to_Construction:

construction = surface.construction
if not construction.empty? and not construction.get.to_Construction.empty?
  construction = construction.get.to_Construction.get
end

Which is one way to do it.

You can case cast the ConstructionBase to a Construction by using to_Construction:

construction = surface.construction
if not construction.empty? and not construction.get.to_Construction.empty?
  construction = construction.get.to_Construction.get
end

Which is one way to do it.