lib/to_openstudio/model.rb in honeybee-openstudio-2.38.7 vs lib/to_openstudio/model.rb in honeybee-openstudio-2.38.8

- old
+ new

@@ -647,11 +647,11 @@ shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model) shading_surface_group.setShadingSurfaceType('Building') end @hash[:orphaned_faces].each do |face| face_object = Face.new(face) - openstudio_shade = face_object.to_openstudio_shade(@openstudio_model, shading_surface_group) + openstudio_shade = face_object.to_openstudio_shade(@openstudio_model) if $orphan_groups openstudio_shade.setShadingSurfaceGroup(shading_surface_group) end end end @@ -661,13 +661,13 @@ if @hash[:orphaned_apertures] if $orphan_groups shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model) shading_surface_group.setShadingSurfaceType('Building') end - @hash[:orphaned_apertures].each do |ap| + @hash[:orphaned_apertures].each do |ap| ap_object = Aperture.new(ap) - openstudio_shade = ap_object.to_openstudio_shade(@openstudio_model, shading_surface_group) + openstudio_shade = ap_object.to_openstudio_shade(@openstudio_model) if $orphan_groups openstudio_shade.setShadingSurfaceGroup(shading_surface_group) end end end @@ -677,12 +677,12 @@ if @hash[:orphaned_doors] if $orphan_groups shading_surface_group = OpenStudio::Model::ShadingSurfaceGroup.new(@openstudio_model) shading_surface_group.setShadingSurfaceType('Building') end - @hash[:orphaned_doors].each do |dr| + @hash[:orphaned_doors].each do |dr| dr_object = Door.new(dr) - openstudio_shade = dr_object.to_openstudio_shade(@openstudio_model, shading_surface_group) + openstudio_shade = dr_object.to_openstudio_shade(@openstudio_model) if $orphan_groups openstudio_shade.setShadingSurfaceGroup(shading_surface_group) end end end