AnsweredAssumed Answered

Buildings not being generated in a new scene

Question asked by obrjo181 on Jun 28, 2012
Latest reply on Jul 9, 2012 by MBuehler-esristaff
I've just created a new scene with three different building footprints, for Industrial, Comercial and Residential buildings. I'm trying to extrude a pretty basic rule onto these layers to create the different buildings based on height and colour as below:



attr heightInd = 80% : 8
    10% : 6
    else : rand(4,15)
attr heightCom = 60% : 7
    30% : 4
    else : rand(4,15)
attr heightRes = 90% : 4
    else: rand(4,10)

attr red = "#ff0000"
attr blue = "#aaaaff"
attr green = "#46c820"


LotIndustrial--> extrude(heightInd) color(red)

LotCommercial--> extrude(heightCom) color(blue)

LotResidential--> extrude(heightRes) color(green)

This code should produce the buildings at different heights and colours based on the startRule, but when I assign and generate, nothing happens on my model! I was wondering if this was a problem with CityEngine or with my code? I'm using CityEngine Advanced 2011.2.