Allows users to toggle the visibility of different levels, construction phases, disciplines, and categories within a building scene layer. This sample demonstrates how to explore building scene layers and filter based on various criteria.
How to use the sample (SampleViewer)
- The SampleViewer scene should open by default. If it is not open, click the SampleViewer scene to open it.
- Click play.
- Using the UI, enter an APIKey in the input field to the top left.
- Open the Samples drop-down and click Building Filter to open the level.
- Use the UI to toggle visibility of different levels, construction phases, disciplines, and categories.
How to use the sample (BuildingFilter Scene)
- Open the BuildingFilter Level:
- Navigate to the BuildingFilter level in your project and open it.
- Set the API Key:
- In the outliner, locate and select the ArcGISMapActor.
- In the Details panel, find the field for the API key and enter your API key.
- Start the Simulation:
- Click the play button to start the simulation.
- Interact with the UI:
- Service URL:
- There is a space in the UI where you can add a service URL for a building scene layer. Enter the URL to load a specific building scene layer. You can also use a local file path for the URL.
- Building Scene Levels:
- Use the provided controls to adjust the building scene levels. This allows you to focus on specific levels of the building.
- Construction Phases:
- Use the slider to adjust the construction phases of the building scene layer. Slide it to view different stages of the construction process.
- Disciplines and Categories:
- The UI provides a list of disciplines and categories. You can:
- Set the visibility of specific disciplines or categories by toggling them on or off.
- Enable or disable all disciplines or categories at once using the provided options.
- The UI provides a list of disciplines and categories. You can:
- Service URL:
How it works
- Create an ArcGISMap actor with a building scene layer.
- Create a default building filter to apply different where clauses.
- Create an actor with a C++ script to filter different criteria.
- The
GetSubLayers
function is used to fetch a collection of the building scene layer's sublayers. - The
GetSolidFilterDefinition
function is used to get the filter definition of the default filter. - The
SetWhereClause
function is used to set a dynamically created where clause based on filter criteria. - The
SetActiveBuildingAttributeFilter
function is used to set the default filter with the new where clause to active.
Tags
building scene layer, filter, disciplines, categories, construction phases