//건축법 시행령 35조(피난계단의 설치) 1항1호
Check(EDBA_35_1_1){
KS
}
KS {
Floor myFloor {
getObjectProperty(Floor.number) >= 5
}
getTotalFloorArea(myFloor) <= 200m2
}
|
min_floor_area = 200
min_floor_area_label = "Minimum total floor area"
def Check():
num = 0
for storey in SELECT('storey'):
if num >= 5:
area_sum = 0
for space in storey.SELECT('space'):
area_sum += space.SELECT('area').UNIT('m2').NUMBER()
if area_sum >= min_floor_area:
storey.SUCCESS("Total floor area:"+ str(area_sum) + 'm2')
else:
storey.FAIL("Total floor area:"+ str(area_sum) + 'm2')
num += 1
|