Creating differnt roofs with attributes from shape

10-23-2013 10:40 PM
New Contributor

first time here. Sorry for my bad english.

I'm using the City Engine for a few days now. This programm is quiet new to us in our department so i have to learn how to use this program. I did the tutorials and got a quick impression how things are working and i am really interested and want to learn more about it.

I'm writing a rule at the moment. I was able to extrude  my shapes with the help of the internet. 

attr hoehe = 0
attr dach = 0


Lot -->
extrude (world.y, hoehe)

in the attribute table there is a attribute  dach with 2 values

1 = gable
2 = flat

I was able to create roof gable on all shapes.

Now i am trying to put these attributes into my rule, so if dach = 2 it stays flat.

Can't figure it out since i am new to writing rules.

Can you give me the rule for it with  a short explanation?

Is there anything beside the tutorials, which will help me understand writing rules?

I hope you can help me

Thank you in advance

Greetings from Germany

Tags (2)
0 Kudos
1 Reply
Frequent Contributor
0 Kudos