lib/openstudio-standards/btap/geometry.rb in openstudio-standards-0.1.11 vs lib/openstudio-standards/btap/geometry.rb in openstudio-standards-0.1.12
- old
+ new
@@ -2599,10 +2599,10 @@
def self.set_fenestration_to_wall_ratio(surfaces,ratio,offset = 0, height_offset_from_floor = true, floor = "all")
surfaces.each do |surface|
result = surface.setWindowToWallRatio(ratio,offset,height_offset_from_floor)
raise( "Unable to set FWR for surface " +
- surface.getAttribute("name").to_s +
+ surface.name.get.to_s +
" . Possible reasons are if the surface is not a wall, if the surface
is not rectangular in face coordinates, if requested ratio is too large
(window area ~= surface area) or too small (min dimension of window < 1 foot),
or if the window clips any remaining sub surfaces. Otherwise, removes all
existing windows and adds new window to meet requested ratio.") unless result
\ No newline at end of file