How to save 'reported item' as 'object attribute' in CityEngine?

572
2
Jump to solution
11-17-2022 05:11 PM
KyleSeok
New Contributor III

Hello,

Does anyone know how to save 'reported item' as 'object attribute' in CityEngine?
I already know that it can temporarily calculate geometry area using 'print(geometry.area)' or 'report("Area", geometry.area)', but this approaches cannot be operated with dynamic parameters.

For example, Geodatabase computes polygon area(Shape_Area), but CityEngine doesn't take advantage of it. If it is possible, the area of the parcel can be used in another layer (eg. buildings) to calculate the FAR.

How can i that ?

0 Kudos
1 Solution

Accepted Solutions
JonasObertuefer
Esri Contributor

Hi @KyleSeok,

You can do a script-based export and there write the reported value(s) as object attributes to the shapes. There is an example in this thread: https://community.esri.com/t5/arcgis-cityengine-questions/using-python-to-create-an-object-attribute...

This is not a dynamic process however, so everytime you adjust your rule attributes or your shapes you need to run the export again to get updated object attributes values.

Best,
Jonas

View solution in original post

0 Kudos
2 Replies
JonasObertuefer
Esri Contributor

Hi @KyleSeok,

You can do a script-based export and there write the reported value(s) as object attributes to the shapes. There is an example in this thread: https://community.esri.com/t5/arcgis-cityengine-questions/using-python-to-create-an-object-attribute...

This is not a dynamic process however, so everytime you adjust your rule attributes or your shapes you need to run the export again to get updated object attributes values.

Best,
Jonas

0 Kudos
KyleSeok
New Contributor III

Thanks @JonasObertuefer !

 

That's what i want to find.

 

0 Kudos