lib/from_openstudio/geometry/shade.rb in honeybee-openstudio-2.23.5 vs lib/from_openstudio/geometry/shade.rb in honeybee-openstudio-2.23.6

- old
+ new

@@ -60,11 +60,11 @@ hash[:type] = 'ShadeEnergyPropertiesAbridged' unless shading_surface.isConstructionDefaulted construction = shading_surface.construction if !construction.empty? - const_name = construction.get.nameString + const_name = clean_identifier(construction.get.nameString) hash[:construction] = const_name unless $shade_constructions.has_key?(const_name) const_obj = construction.get const = const_obj.to_LayeredConstruction.get $shade_constructions[const_name] = const @@ -72,10 +72,13 @@ end end transmittance_schedule = shading_surface.transmittanceSchedule if !transmittance_schedule.empty? - hash[:transmittance_schedule] = transmittance_schedule.get.nameString + trans_sch_name = clean_identifier(transmittance_schedule.get.nameString) + unless $schedules[trans_sch_name].nil? + hash[:transmittance_schedule] = trans_sch_name + end end hash end