AnsweredAssumed Answered

Python - Take parameter value set as attribute

Question asked by Emanuelbjorsell on Jun 9, 2020

Hello,

 

I need to export a shape file with a height attribute from CityEngine. Instead of me manually checking every buildings height and apply as an attribute to that shape, I'm trying to write a script that does it for me.

 

The idea is that the script goes through all shapes, check if they have a sertain rule attached, take the height value, create a attribute and insert the value.

 

The issue is that the command getAttribute() only takes a user-set value, so if you haven't manually inserted a height, the value getAttribute() takes will not be correct. I'm using CityEngine 2018

 

How can I get this to work?

Outcomes