POST
|
Here is my rule files look like: buildingRules.cga version "2016.1"
import Default : "/ESRI.lib/rules/Buildings/Building_From_OpenStreetMap.cga"
import Report : "rules/reportAttr.cga"
attr Levels= 0
@StartRule
Generate -->
Report.Report
Default.Generate reportAttr.cga version "2016.1"
attr name = ""
attr levels = 0
attr indoorModels = false
attr indoorLevels = ""
@StartRule
Report -->
report("name", name)
report("levels", levels)
report("indoorModels", indoorModels)
report("indoorLevels", indoorLevels)
The building rule is used to generate buildings from footprints and report its object attributes. Attributes in the reportAttr.cga are added using Object Attribute Panel in Inspector. Below is the screenshot of cityEngine showing all object attributes are correctly connected with attributes in the Rule files. When uploading SPK onto Esri cloud, I always delete the old one with the same filename before uploading.
... View more
05-18-2017
09:08 AM
|
0
|
1
|
1499
|
POST
|
I tried using "One Feature Per Leaf Shape" option while exporting, however, all object attributes are still incorrect when I opened the file in Scene Viewer.
... View more
05-15-2017
10:01 AM
|
0
|
5
|
1499
|
POST
|
Hi, I want to export building models from CityEngine to Scene Layer Package format, so I can upload them onto Esri cloud service. After uploading the SPK file onto Esri cloud service, I use Scene Viewer to open the file. For each building model in CityEngine, I added object attributes and I want to have these object attributes available in scene viewer's popup window. I used Report feature in CityEngine to export these object attributes. Then I got this problem, when I open the SPK file in Scene Viewer. I can see the object attribute fields in the popup window, but the values are not correct. I have tried different scenarios: Multiple building models in one SPK, I have one shape layer in CityEngine which has 10 building models. I want to export this shape layer to a single SPK file. All these building models have the same attribute fields and each building model has its own values. I exported these buildings into one SPK file (SPK1). Then I uploaded and opened SPK1 in Scene Viewer, this SPK1 has all the building information correctly linked to each building. Then I modified one of the object attribute values of a building and exported these buildings into a new SPK file (SPK2). After uploaded and opened SPK2 in Scene Viewer, all building information were changed, some buildings have no value; some building have incorrect values shown up in popup window; some building information are duplicated on different buildings. I also tried to upload 2 or 3 buildings models together, but when I opened it in Scene Viewer, object attributes were still wrong. One time I exported three SPK files for a same set of building models, I uploaded and opened them in Scene Viewer. All Building information are mismatched. Even I clicked on the same building, the attribute values shown in popup window are different between each SPK file. One building model in one SPK, In my CityEngine's scene, I have 110 building models. I picked few building models and exported them into separate SPK files. Then I uploaded these SPK files onto Esri cloud service. I checked each SPK file separately in Scene Viewer, their object attributes are correctly shown in the popup window. If I use this method to export, then I will have 110 SPK files, which makes no sense. So my problem is I want to export multiple building models with object attributes from CityEngine to SPK format, so I can view building information in popup windows in Scene Viewer. Can somebody please help me to solve this problem? Thank you very much. Sincerely, Ron
... View more
05-13-2017
01:04 PM
|
0
|
7
|
3207
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|