Select to view content in your preferred language

Lot Setbacks

2254
2
12-03-2012 12:13 PM
KatieJanssen
New Contributor
I am trying to create an interactive model where the user can adjust the required setbacks of a lot. I want to create four attributes, front, back, left and right. After multiple trial and error attempts, I am reverting to the forum for help. This is the code I have created thinking it would get me close to my goal. If anyone has any suggestions, I would greatly appreciate the help.

attr left = 3
attr right = 3
attr front = 3
attr back = 3
@StartRule
Lot -->
case shapeType == "LotInner" :
  Lot. setback(1) { front : Lot | back : Lot | right : Lot | left : Lot}
else :
  extrude(height) comp(f) { side :  Facade | top(0):   Roof }
0 Kudos
2 Replies
MatthiasBuehler1
Deactivated User
Hey there !

If you're new to CE, first watch my tutorials which you can find here :
http://forums.arcgis.com/threads/64843-CityEngine-Collection-RESOURCES-FAQ-HELP

Especially 1,2 and 6.

🙂


After those, it may get a little clearer how to use setback() and the other operations..

Let me know if you need more help, ok ?

😮
0 Kudos
PmssS
by
Emerging Contributor

Hi

did you find a solution?

I am doing this already for a few days and I cannot solve it.

This where I am.

####Attributes###

attr height =

rand(20, 50)

attr distanceStreet = 0

   

####Start###

Lot --> Parcel

Parcel -->

    setback(distanceStreet)

        { street.front: Parking | street.back : Backside | street.right : Rightside | street.left : Leftside | remainder: Footprint }

Footprint --> extrude(height)

Parking -->

       offset (8)

Backside -->

       offset (3.9)

Rightside-->

       offset (5)

Leftside-->

       Offset (4.46)

could you help?

cheers

Pedro

0 Kudos