Kevin88

Creating differnt roofs with attributes from shape

Discussion created by Kevin88 on Oct 23, 2013
Latest reply on Oct 24, 2013 by MBuehler-esristaff
Hey,

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. 

@Location(-904,-123)
attr hoehe = 0
attr dach = 0

@StartRule

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

Kevin

Outcomes