To access the tutorial projects in ArcGIS CityEngine, open CityEngine and click Help > Download Tutorials and Examples in the main menu. After choosing a tutorial or example, the project is automatically downloaded and added to your CityEngine workspace.
In this tutorial, you will learn how to export a CityEngine scene or a selection of a scene to ArcGIS Online as a web scene that can be opened in Scene Viewer. Also, the layers from the CityEngine scene are published individually and can be opened in Scene Viewer. Finally, you'll learn how to share the published items.
Export a CityEngine scene to ArcGIS Online as a web scene
To export a CityEngine scene as a web scene, do the following:
- Expand the Tutorial_15_Publish_Web_Scenes tutorial folder in the Navigator window.
- Open the Esri_Campus.cej scene in the scenes folder in the Viewport window.
Generate the models when prompted.
- Click File > Export to open the Export dialog box.
- Click Share As Web Scene:
- Click Next to open the Share As Web Scene dialog box.
Sign in to ArcGIS Online if you are not already signed in to continue.
- Keep the default export options:
If you created a scenario and want to export it individually, do the following:
- Click the Content to Export drop-down menu to select the scenario.
- Check the Export Default Objects check box to export the scenario with default objects.
- Check the Merge Layers check box to merge layers inside group layers.
Note:
The terrain layers will not be merged.
- Click Finish.
A web scene combining all layers is published to ArcGIS Online. Also, a tile package (.tpk) for each terrain layer and a scene layer package (.slpk) for all other layers are published. They are published to the current portal in which you are signed in. The CityEngine bookmarks with the saved camera configurations are exported to Scene Viewer as slides in the web scene.
After the scene is uploaded, your default browser opens the item in ArcGIS Online.
- Click Open in Scene Viewer to open the web scene in Scene Viewer:
- Click the Scene Viewer slides to go through the exported bookmarks from CityEngine:
Export a selection of a CityEngine scene to ArcGIS Online
To export a selection of a CityEngine scene, do the following:
- Click the Select tool (Q) and to select part of the scene in the Viewport window.
- Open the Share As Web Scene dialog box as you did above.
- Click Selection in the Content to Export drop-down menu.
- Click Finish to export the selection as a web scene.
Share published items on ArcGIS Online
To share published items, do the following:
- Click the item you want to share on the Content tab on ArcGIS Online.
The item page appears.
- Click Share.
- Set the sharing level.
- Click Save.
Share published items using CityEngine
To share published items in CityEngine, do the following:
- In the Navigator window, click My Content to verify all the files and layers are there.
If prompted, sign in to ArcGIS Online:
- Right-click a created item and select Open in browser to open the item page in ArcGIS Online.
- On the ArcGIS Online item page, click Share to share the item.
- Set the sharing level.
- Click Save.
In this tutorial, you learned how to do the following:
- Export a CityEngine scene or a scene selection to ArcGIS Online as a web scene that can be opened in Scene Viewer.
- Share these layers on ArcGIS Online.
For more information about creating and sharing web scenes on ArcGIS Online, refer to Get started creating scenes and Share scenes.
For more information on exporting individual TPK and SLPK files, refer to Export terrain and Export SLPK.
To continue your learning with CityEngine, see the complete CityEngine tutorial catalog.