First time here? Check out the Help page!
1 | initial version |
Assuming you know the wall height you can do something like this:
ft_to_m = 0.3048
wall_height = 10*ft_to_m # or whatever it is
window_height = (wall_height-1-3)*ft_to_m
wall_area = wall.grossArea
wall_width = wall_area/wall_height
window_area = wall_width*window_height
wwr = window_area/wall_area
Then you can pass that window to wall ratio into the setWWR methods.
2 | No.2 Revision |
Assuming you know the wall height you can do something like this:
ft_to_m = 0.3048
wall_height = 10*ft_to_m # or whatever it is
window_height = (wall_height-1-3)*ft_to_m
(wall_height-1-3)*ft_to_m # subtract floor and ceiling offsets
wall_area = wall.grossArea
wall_width = wall_area/wall_height
window_area = wall_width*window_height
wwr = window_area/wall_area
Then you can pass that window to wall ratio into the setWWR methods.