Hi David,
My rule is little bit complicated.I want to change the footprint area as setback parameters changes.
If you check the code below, I want to populated the Area2 with the number from AREAS2 at "reports" .
attr AREA = geometry.area #PARCEL AREA
@Group("SetBacks:")
attr frontSetback = 10
attr backSetback = 5
attr sideSetback = 3
attr FAR = 0
@Group("Area:" )
attr GFloor = AREA*FAR #GROSS FLOOR AREA BASE ON PROVIDED FAR
attr LCover = AREA2 #LOT COVERED BY THE BUILDING(if get from shapefile)
@Group("Heights: ")
attr GFHeight = 5.5
attr UFHeight = 3.5
@Range ("transparent", "as is", "top and side")
attr vizMode = "as is"
@StartRule
Parcel -->
set ( AREA, geometry.area )
report ("AREA", AREA)
setback(frontSetback) { street.front : NIL | remainder :
setback(backSetback) { street.back : NIL | remainder :
setback(sideSetback) { street.side : NIL | remainder :
FootprintReach
}
}
}
attr AREA2 = 0 #FOOTPRINT AREA
attr buildingHeight = GFloor/AREA2*UFHeight
FootprintReach -->
set(AREA2, geometry.area)
report("AREA2", geometry.area)
extrude(world.y, GFloor/AREA2*UFHeight)
split(y) { GFHeight : Volume("GF") | ~1 : UpperFloors }
UpperFloors -->
split(y) { ~ UFHeight : Volume("UF") } *
Volume(volumeType) -->
case volumeType == "GF" :
color(0,1,0)
Visualization
else :
color(0,0,1)
Visualization
Visualization -->
case vizMode == "as is" :
Done.
case vizMode == "transparent" :
set (material.opacity, 0.8
)
Done.
else :
comp(f) {top : Top. | side : Side. | all : NIL }
Thank you.
Dulini