How to get rule-set value (attribute value set by CityEngine rule CGA) in python script?

812
1
08-03-2017 11:59 PM
zhenhe
by
New Contributor

Hi,

I want to write some scripts for calculation in python, which need first read the values of the attributes (such as height, area etc.) of the shapes set in CityEngine. I can get the value of the 'Object Attributes' (user set value of attribute) by 'ce.getAttribute(height)' for example, but if the value of attribute is set by CGA rule, it doesn't work. I tried to create 'Reports' by CGA and then in python to read the value in 'Reports', but cannot figure out what to do in python scripts.

Any help would be great, thanks.

Tags (1)
0 Kudos
1 Reply
ThomasFuchs
Esri Regular Contributor

Hello Zhen He

Thank you for your question. Please have a look at the reply of CLau-esristaff‌ in the adjust attr of CGA rule by python script thread.

0 Kudos