+ Reply to Thread
Results 1 to 3 of 3

Thread: Rules for distance of parcel limit at Building

  1. #1
    Tadeo Sanabria
    Join Date
    Mar 2012
    Posts
    4
    Points
    0
    Answers Provided
    0


    0

    Default Rules for distance of parcel limit at Building

    Hello

    Excuse my bad english

    I'm working on a urban model derived from the town planning regulations.
    I required to establish differential distances between the boundary of parcel and the limit of each side of the building
    I tested with the offset command but applies the same distance from all faces, but I need to differentiate between the face and apply a distance

    What command should I use, or what is the proper rule?
    There is some learning resource CityEngine in Spanish, or any forum in this language?

    I appreciate any help. Thanks.

  2. #2
    André Cardoso
    Join Date
    Oct 2011
    Posts
    69
    Points
    2
    Answers Provided
    0


    0

    Default Re: Rules for distance of parcel limit at Building

    You can use the setback operation, in a recursive manner.

    I think any solution depends on some more details of your problem...
    The solution I provide bellow does not seem very elegant, nor it works in every situation... but it might get you going for now...

    Click image for larger version

Name:	limits.jpg
Views:	63
Size:	140.3 KB
ID:	13159
    Code:
    version "2011.2"
    
    attr buildingHeight = 10
    
    attr buildingColor = "#4A708B"
    
    attr leftColor = "#FF0000"
    attr rightColor = "#0000FF"
    attr backColor = "#FFA500"
    attr frontColor = "#800080"
    
    attr frontSetback = 2
    attr leftSetback = 8
    attr rightSetback = 4
    attr backSetback = 10
    
    @StartRule
    LotInner -->
        NIL.
       
    @StartRule
    LotCorner -->
        NIL.
    
    
    @StartRule
    Lot -->
        setback(frontSetback){
            front: color(frontColor) FrontPart.|
            remainder: MinusFront
        }
    
    MinusFront -->
        setback(leftSetback){
            left: color(leftColor) LeftPart.|
            remainder: MinusFrontAndLeft
        }
    MinusFrontAndLeft -->
        setback(rightSetback){
            right: color(rightColor) RightPart.|
            remainder: MinusFrontLeftAndRight
        }
       
    MinusFrontLeftAndRight -->
        setback(backSetback){
            back: color(backColor) BackPart.|
            remainder: MinusFrontLeftRightAndBack
        }
    
    MinusFrontLeftRightAndBack -->
        Mass
    
    Mass -->
        alignScopeToAxes(y)
        extrude(world.y, buildingHeight)
        color(buildingColor)
        Mass.
    I don't know any documentation in spanish though :S
    I normally use the application help menu window, and this forum

    Hope it helps!!
    André Cardoso
    Developer(3Decide)
    URL: www.3decide.com

    E-mail: andre.cardoso@3decide.com
    Address: PINC UPTEC – Praça Coronel Pacheco, 2,
    4050-453 Porto, Portugal

    http://about.me/andrecardoso

  3. #3
    Tadeo Sanabria
    Join Date
    Mar 2012
    Posts
    4
    Points
    0
    Answers Provided
    0


    0

    Default Re: Rules for distance of parcel limit at Building

    Thanks, i'll try to base me in your solution and then i comment the results.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts