not been successful. Does the API only work with ArcGIS Pro/Map but not CityEngine? Thanks.
Follow the steps listed here to create hosted scene layers Publish hosted scene layers—ArcGIS Online Help | ArcGIS
Then you can add them directly to a new scene in ArcGIS Online and save the web scene there to load into your app.
Russell Roberts Can you comment if anything else needs to be done?
Correct. Web scenes created with CityEngine are not supported. ArcGIS Pro provides the simplest workflow for this.
If you are using CityEngine, however, what you can do is to republish the scene as a .slpk from CityEngine, and extract it to a scene layer on portal/AGO.
Thank you for the response. I created a scene layer package file and
to Arcgis online. Can you point me to the next steps to creating the web
When I get to step #5, I do not see any checkbox for "Publish this file as a hosted layer".
Perhaps it's because I only have a public ArcGIS online account?
Update: That was it. I started the 60 day trial, and I can see the checkbox now.
Looks like you are all set for checking it out scene layers with your trial account. Let me know if you have any other questions.
Is there a way to upload and create the hosted scene layer through the ArcGIS online API?
I would like to automate their creation. I am looking here ArcGIS REST API but I don't see it.
You could try altering the script in this post and seeing if it will work with the publishing of scene layers from scene layer packages
Publish hosted tile layers—Portal for ArcGIS | ArcGIS Enterprise
or you can use this Script with pro to package and upload the scene layer packages to AGOL.
Automate Scene Layer Package (SPK) creation with ArcGIS Pro
Retrieving data ...