Extrude elevation instead of height

Discussion created by fedczyszyn on Dec 15, 2013
Latest reply on Dec 16, 2013 by MBuehler-esristaff

I'm a new user of CityEngine, i'm a engineering student in topography (french).

I would like to know if it's possible to get the coordinates of a shape in order to use them in the python code ?

For example I have a shape at the elevation of 400 meters and I'd like to extrude it until 420 meters.

Something like this:

attr shapeType = ""
attr Altitude = 420

Height = Altitude - (?? get the shape elevation ??)

Lot -->
case shapeType == "LotInner" :
else :
  extrude(world.y, Height) comp(f) { side : Wall | top : Roof }

Thanks for your answers.