Dear Matthias,
Thank's, the code now work. I've modified someting, frist of all attr Q_GRONDA is not string but value (is the height of my building). Now all work but the color of building work in ralation with extrud, I praefer be indipendent each other, but also like this is ok.
I do a master thesis with City Engine, so, can I disturb you other time?
Two other things: you wrote in the previaous code :"top : roofHip(30,0.5) Roof", when I applicate the roof of buildings became from flat to sloping, roofHip(30,0.5) is the code for sloping roof? Wher I can found library with different ty pes of shape like that?
It's possible applicate transparency?
This is my modyfyed code:
// Attributes
attr Q_GRONDA = 1
attr STANZA = ""
// Functions
red = "#ffaaaa"
green = "#aaffaa"
blue = "#aaaaff"
turquoise = "#ooebeb"
white = "#ffffff"
yellow = "#ffff73"
grey = "#9c9c9c"
// Start !
@StartRule
lot --> extrude (Q_GRONDA)
Colorizer
Colorizer -->
case STANZA == "8_1" :
color(red)
case STANZA == "7_1" :
color(yellow)
comp (f){ side : facade.}
case STANZA == "1_3" :
color(blue)
case STANZA == "magazzino_2" :
color(green)
comp (f){ side : facade.}
else :
color(turquoise)
comp (f){ side : facade.}
all the best.
chiara