Building Scene Layer is not shown in Unity

1347
9
05-09-2023 02:26 AM
MarkusWall
New Contributor

Hi,

we have upgraded the SDK to version 1.2.0 to integrate our Building Scene Layers to the Unity model. We have 6 Building Scene Layers hosted on Portal 10.9.1 with a local coordinate system. 4 of them are drawing without a problem. One only draws the roof (seems to be the only component in exterior shell) and one wont draw at all. Its the largest most detailed building (324mb). The scene layers all have the version 1.7.

Is it possible to select which categories should be drawn in the model? Or is it only exterior shell? Is there a posibillity to select the geometrie that should be part of exterior shell in ArcGIS Pro?

This are the layerinformations:

{"serviceName":"BG20_BIM","serviceItemId":"b860d56aaa914eeeb8ecbe12aeb2a8cb","serviceVersion":"1.7","layers":[{"id":0,"layerType":"Building","alias":"BG20_Revit_Interior","spatialReference":{"wkid":31255,"latestWkid":31255,"vcsWkid":5778,"latestVcsWkid":5778},"fullExtent":{"xmin":74904.88036874152,"ymin":348785.3322664283,"xmax":75099.54373172093,"ymax":348842.37023411714,"spatialReference":{"wkid":31255,"latestWkid":31255,"vcsWkid":5778,"latestVcsWkid":5778},"zmin":252.759,"zmax":270.1640000000024},"version":"1.7","sublayers":[{"id":200,"layerType":"group","name":"Full Model","alias":"Full Model","modelName":"FullModel","visibility":false,"sublayers":[{"id":210,"layerType":"group","name":"Mechanical (3)","alias":"Mechanical (3)","modelName":"Mechanical","visibility":true,"sublayers":[{"id":18,"layerType":"3DObject","name":"MechanicalEquipment (3)","alias":"MechanicalEquipment","modelName":"MechanicalEquipment","discipline":"Mechanical","visibility":true}]},{"id":220,"layerType":"group","name":"Electrical (3)","alias":"Electrical (3)","modelName":"Electrical","visibility":true,"sublayers":[{"id":17,"layerType":"3DObject","name":"LightingFixtures (3)","alias":"LightingFixtures","modelName":"LightingFixtures","discipline":"Electrical","visibility":true},{"id":16,"layerType":"3DObject","name":"ElectricalEquipment (3)","alias":"ElectricalEquipment","modelName":"ElectricalEquipment","discipline":"Electrical","visibility":true}]},{"id":230,"layerType":"group","name":"Architectural (3)","alias":"Architectural (3)","modelName":"Architectural","visibility":true,"sublayers":[{"id":15,"layerType":"3DObject","name":"Windows (3)","alias":"Windows","modelName":"Windows","discipline":"Architectural","visibility":true},{"id":14,"layerType":"3DObject","name":"Walls (3)","alias":"Walls","modelName":"Walls","discipline":"Architectural","visibility":true},{"id":13,"layerType":"3DObject","name":"StairsRailing (3)","alias":"StairsRailing","modelName":"StairsRailing","discipline":"Architectural","visibility":true},{"id":12,"layerType":"3DObject","name":"Stairs (3)","alias":"Stairs","modelName":"Stairs","discipline":"Architectural","visibility":true},{"id":11,"layerType":"3DObject","name":"SpecialtyEquipment (3)","alias":"SpecialtyEquipment","modelName":"SpecialtyEquipment","discipline":"Architectural","visibility":true},{"id":10,"layerType":"3DObject","name":"Rooms (1)","alias":"Rooms","modelName":"Rooms","discipline":"Architectural","visibility":false},{"id":9,"layerType":"3DObject","name":"Roofs (3)","alias":"Roofs","modelName":"Roofs","discipline":"Architectural","visibility":true},{"id":8,"layerType":"3DObject","name":"PlumbingFixtures (3)","alias":"PlumbingFixtures","modelName":"PlumbingFixtures","discipline":"Architectural","visibility":true},{"id":7,"layerType":"3DObject","name":"GenericModel (3)","alias":"GenericModel","modelName":"GenericModel","discipline":"Architectural","visibility":false},{"id":6,"layerType":"3DObject","name":"Furniture (3)","alias":"Furniture","modelName":"Furniture","discipline":"Architectural","visibility":true},{"id":5,"layerType":"3DObject","name":"Floors (3)","alias":"Floors","modelName":"Floors","discipline":"Architectural","visibility":true},{"id":4,"layerType":"3DObject","name":"Entourage (3)","alias":"Entourage","modelName":"Entourage","discipline":"Architectural","visibility":true},{"id":3,"layerType":"3DObject","name":"Doors (3)","alias":"Doors","modelName":"Doors","discipline":"Architectural","visibility":true},{"id":2,"layerType":"3DObject","name":"Columns (3)","alias":"Columns","modelName":"Columns","discipline":"Architectural","visibility":true},{"id":1,"layerType":"3DObject","name":"Casework (3)","alias":"Casework","modelName":"Casework","discipline":"Architectural","visibility":true}]}]},{"id":0,"layerType":"3DObject","name":"Overview","alias":"Overview","modelName":"Overview","visibility":false}],"statisticsHRef":"./statistics/summary","name":"BG20_BIM"}],"supportedBindings":["REST"]}
{"serviceName":"LD3_Flugdach","serviceItemId":"1ee728e247b74844b4540b89009d3f2f","serviceVersion":"1.7","layers":[{"id":0,"layerType":"Building","alias":"LD3-Halle_GIS_20201203","spatialReference":{"wkid":31255,"latestWkid":31255,"vcsWkid":5778,"latestVcsWkid":5778},"fullExtent":{"xmin":73718.50002901201,"ymin":348945.68103713606,"xmax":74085.58995070333,"ymax":349086.30062980304,"spatialReference":{"wkid":31255,"latestWkid":31255,"vcsWkid":5778,"latestVcsWkid":5778},"zmin":255.45,"zmax":285.98123059454457},"activeFilterID":"","statisticsHRef":"./statistics/summary","sublayers":[{"id":200,"layerType":"group","name":"Full Model","alias":"Full Model","modelName":"FullModel","visibility":false,"sublayers":[{"id":210,"layerType":"group","name":"Structural","alias":"Structural","modelName":"Structural","visibility":true,"sublayers":[{"id":3,"layerType":"3DObject","name":"StructuralFraming","alias":"StructuralFraming","modelName":"StructuralFraming","discipline":"Structural","visibility":true,"isEmpty":false},{"id":2,"layerType":"3DObject","name":"StructuralColumns","alias":"StructuralColumns","modelName":"StructuralColumns","discipline":"Structural","visibility":true,"isEmpty":false}],"isEmpty":false},{"id":220,"layerType":"group","name":"Architectural","alias":"Architectural","modelName":"Architectural","visibility":true,"sublayers":[{"id":1,"layerType":"3DObject","name":"Roofs","alias":"Roofs","modelName":"Roofs","discipline":"Architectural","visibility":true,"isEmpty":false}],"isEmpty":false}]},{"id":0,"layerType":"3DObject","name":"Overview","alias":"Overview","modelName":"Overview","visibility":true,"isEmpty":false}],"version":"1.8","name":"LD3_Flugdach"}],"supportedBindings":["REST"]}

Thanks,

Markus

0 Kudos
9 Replies
Jade
by Esri Contributor
Esri Contributor

Currently we don't support filtering by category (on roadmap for next release). To do that you will need to hide categories you don't want to see in ArcGIS Pro. 

Regarding the BSL not drawing issue, could you check the visibility setting in your original dataset to make sure that you have everything set to visible? 

0 Kudos
MarkusWall1
New Contributor III

What do you mean by filtering by check the visibility settings? In Revit or in Pro? When loading the BSL to an empty scene or Pro scene, the building is displayed correctly.

0 Kudos
Jade
by Esri Contributor
Esri Contributor

Sounds like you did have all the layers set to visible. If you could share the item with us, we could help you look into it further with that info. 

0 Kudos
MarkusWall1
New Contributor III

Sure, this is a version of the building hostet on ArcGIS Online. It uses the same SLPK file as the one I use from my Portal. I've set it to public. The coordinate system used is MGI GK Austria Central EPSG 31255!

https://tiles.arcgis.com/tiles/nBCbrJePiQreJMNb/arcgis/rest/services/BG20_BIM/SceneServer

0 Kudos
Jade
by Esri Contributor
Esri Contributor

so it does look like your "full model" visibility is set to false. You can turn that on using the API inside Unity. Also a couple of other sublayers visibility is set to false as well. 

Jade_0-1683924086019.png

 

MarkusWall1
New Contributor III

OK, now I got it! I've set the right visibility in ArcGIS Pro before I publis the building scene Layer. Now the two building scene layer work with unity SDK.

Thanks!

0 Kudos
huikim123
New Contributor

Sorry for disturb, could you brief explain how to turn it on by api inside unity? also I have try on the visibility  before publish  the building scene to online in arcgis pro, but it still show false on the visibility, could you introduce the workflow for changing the visibility in ArcGIS Pro? Thank you.

0 Kudos
MarkusWall1
New Contributor III

Hi,

first you add the Revit or IFC file to an ArcGIS Pro Scene, then you configure the view you want to use in unity, in the content pane (tick the checkboxes of all layers that should be visible).

Afterwards you use the GP tool "Create Building Scene Layer Content" to create a SLPK file. And last you publis the SLPK file on your Portal or ArcGIS Online. Herefore I use the New Item tool on our portal.

On this way you can create different configureations for one building and switch the different states later in Unity. For example, when I use the buildings in VR, I have to disable the doors, otherwise I would not be able to pass through them.

I hope that information helps.

0 Kudos
huikim123
New Contributor

Got it! Now the model is visible in Unity now, thank you for your kind help.

0 Kudos