ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / PointCloudSceneLayer Class / GetFilters Method
Example

In This Topic
    GetFilters Method (PointCloudSceneLayer)
    In This Topic
    Gets a list of the currently applied filters. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Get the filters for PointCloudSceneLayer
    {
      // Note: call within QueuedTask.Run()
      {
        IReadOnlyList<CIMPointCloudFilter> updatedFilter = pointCloudSceneLayer.GetFilters();
        foreach (var f in updatedFilter)
        {
          //There is either 0 or 1 of each
          if (f is CIMPointCloudReturnFilter returnFilter)
          {
            PointCloudFilterDefinition pcfl = PointCloudFilterDefinition.FromCIM(updatedFilter);
            List<PointCloudReturnType> updatedReturnValues = pcfl.ReturnValues;
    
          }
          if (f is CIMPointCloudValueFilter classCodesFilter)
          {
            // do something
          }
    
          if (f is CIMPointCloudBitFieldFilter classFlagsFilter)
          {
            // do something
          }
        }
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also