ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BuildingSceneLayer Class / RemoveAllFilters Method
Example

In This Topic
    RemoveAllFilters Method
    In This Topic
    Removes all the filters. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void RemoveAllFilters()
    Public Sub RemoveAllFilters() 
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    The active filter is also cleared
    Example
    Remove BuildingSceneLayer Filter
    //var bsl = ...;
    //Note: Use HasFilter to check if a given filter id exists in the layer
    //Must be called on the MCT
    if (bsl.HasFilter(filter1.ID))
      bsl.RemoveFilter(filter1.ID);
    //Or remove all filters
    bsl.RemoveAllFilters();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also