lib/from_openstudio/geometry/shade.rb in honeybee-openstudio-2.17.5 vs lib/from_openstudio/geometry/shade.rb in honeybee-openstudio-2.18.0
- old
+ new
@@ -59,10 +59,16 @@
hash = {}
hash[:type] = 'ShadeEnergyPropertiesAbridged'
construction = shading_surface.construction
if !construction.empty?
- hash[:construction] = construction.get.nameString
+ const_name = construction.get.nameString
+ hash[:construction] = const_name
+ unless $shade_construction.has_key?(const_name)
+ const_obj = construction.get
+ const = const_obj.to_LayeredConstruction.get
+ $shade_construction[const_name] = const
+ end
end
transmittance_schedule = shading_surface.transmittanceSchedule
if !transmittance_schedule.empty?
hash[:transmittance_schedule] = transmittance_schedule.get.nameString