Setback for the Buildings

767
2
Jump to solution
12-07-2016 12:49 AM
AbhishekSobbana
New Contributor II

I have a setback rule for building which helps to give setback from the street and building, the rule is given below

@Group("Setback",3)
@Order(2) @Range(3,6)
attr distanceStreet = 1
@Order(3) @Range(4,8)
attr distanceBuildings =1

Lot --> Parcel
LotInner --> OpenSpace

Parcel -->
   setback(distanceStreet)
      { streetSide: OpenSpace
      | remainder: SubParcel }

SubParcel -->
   setback(distanceBuildings / 2)
      { noStreetSide: OpenSpace
      | remainder: Building}


OpenSpace --> color("#77ff77")

I want to control the set back from all side differently, something like from left, right, front and back.

It will be helpful if someone can help me out in this.

0 Kudos
1 Solution

Accepted Solutions
LR
by
Regular Contributor

Pretty sure you have to define each setback separately but you can nest it, like so:

setback(attrSBF) {
     front : Grass | remainder : setback(attrSBL) 
     { left : Grass | remainder : setback(attrSBR) 
          { right : Grass | remainder : setback(attrSBB) 
               { back : Grass | remainder : Building } 
          } 
     } 
}‍‍‍‍‍‍‍‍‍‍

Help also lists some more setback modes: Help - 

View solution in original post

2 Replies
LR
by
Regular Contributor

Pretty sure you have to define each setback separately but you can nest it, like so:

setback(attrSBF) {
     front : Grass | remainder : setback(attrSBL) 
     { left : Grass | remainder : setback(attrSBR) 
          { right : Grass | remainder : setback(attrSBB) 
               { back : Grass | remainder : Building } 
          } 
     } 
}‍‍‍‍‍‍‍‍‍‍

Help also lists some more setback modes: Help - 

AbhishekSobbana
New Contributor II

Thanks, It worked perfectly as I wanted.

0 Kudos