lib/to_openstudio/geometry/aperture.rb in honeybee-openstudio-2.31.5 vs lib/to_openstudio/geometry/aperture.rb in honeybee-openstudio-2.31.6
- old
+ new
@@ -195,9 +195,19 @@
os_construction = construction.get
os_shading_surface.setConstruction(os_construction)
end
end
+ # add a transmittance schedule if a value is found
+ if @hash[:transmit]
+ schedule_identifier = 'Constant ' + @hash[:transmit] + ' Transmittance'
+ schedule = openstudio_model.getScheduleByName(schedule_identifier)
+ unless schedule.empty?
+ os_schedule = schedule.get
+ os_shading_surface.setTransmittanceSchedule(os_schedule)
+ end
+ end
+
# add the shade to the group
os_shading_surface.setShadingSurfaceGroup(shading_surface_group)
os_shading_surface
end