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 ?
Solved! Go to Solution.
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
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