Select to view content in your preferred language

Create 3D Object Scene Layer Content not working within ModelBuilder

356
4
01-29-2025 12:28 PM
ckellow
Occasional Contributor

I am trying to create a ModelBuilder workflow that will automatically take feature classes either from a geodatabase or a scene and package them into a Scene Layer Package. I am attaching three workflows below where I am using the Iterators within ModelBuilder trying to have the model run through every feature class. No matter what iterator and output, it seems that the Create 3D Object Scene Layer Content tool does not like the inputs. 

Screenshot 2025-01-29 152000.png

 

Screenshot 2025-01-29 151825.png

 

Screenshot 2025-01-29 135931.png

 

No matter which iterator is used, the issue is the same (Iterate Layers is different because it only considers the output to be a precondition). The issue seems to be that the "output" from the iterators or even the copy features (which outputs a feature class), is seen as a model variable within the Create 3D Object Scene Layer Content. Because of this, nothing seems to work. I am wondering if anyone has a solution, work around, or way to do what I am trying to do. Ultimately the main goal is to automate the process of sharing to ArcGIS Online, but the final hurdle is the Create 3D Object Scene Layer tool. 

 

Thanks

0 Kudos
4 Replies
BrendanNewell
Esri Contributor

hey @ckellow, does this workflow work if you remove the iterator and run it on a single feature class? what is the geometry type of the feature class?

🙂
ckellow
Occasional Contributor

Hi Brendan, yes it does work with just a single feature class. The geometry is a multipatch. I am trying to avoid having to manually input each feature class though which is why I would want it to iterate through the GDB, scene, or whatever other method that would avoid the single feature class option. 

0 Kudos
Andrew--Johnson
Esri Regular Contributor

Hi,

The data type listed as supported for this tool is layer file or feature layer. Because you are trying to pass a feature class the tool throws the validation error message. You need to add the Make feature layer tool as an intermediate step to ensure a feature layer is being passed to the Create 3D Object tool.

https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-... 

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-3d-object-scene-layer... 

 

thanks,

Andrew

ckellow
Occasional Contributor

Thank you. This seemed to have worked, but the main thing was figuring out which iterator would work for the use. Below is the model that worked (well before ArcGIS Pro crashed). Originally I wanted the scene to be iterated, but it seems the Make Feature Layer tool does not let the output layer of the iterated scene be used for some reason. So below is what I did and it worked before crashing as mentioned. 

Screenshot 2025-01-30 110953.png

 

0 Kudos