// 건축물의 피난ㆍ방화구조 등의 기준에 관한 규칙 18조 (거실등의 방습) 1항
Check(REFB_18_1){
IF !CS THEN KS}
KS{
getObjectHeight(getFloor(BottomFloor))>=45CM
}
CS {
isObjectProperty(Ground.Surface.isDampProof)=TRUE
}
|
// 변환중
Check():
KS{
myFloors = getFloor(BottomFloor)
for myFloor in myFloors:
if getObjectHeight(myFloor)>= 4500:
myFloor.SUCCESS("BottomFloor elevation:"+ str(getObjectHeight(myFloor)) + 'mm')
else:
myFloor.Fail("BottomFloor elevation:"+ str(getObjectHeight(myFloor)) + 'mm')
}
CS{
isObjectProperty(Ground.Surface.isDampProof)=TRUE
}
getobjectheight(str objname):
objheight = root.select(obj).height().unit('m').number()
return objheight
def getfloor(floor):
if type(floor) == int:
floornum = floor
myfloor = root.select('slab')
myfloor = myfloor.select(floornum)
return myfloor
elif type(floor) == str:
floorname = floor
myfloor = root.select('slab')
myfloor = myfloor.select(floorname)
return myfloor
|