ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureSceneLayer Class / FeatureSceneLayerType Property
Example

In This Topic
    FeatureSceneLayerType Property
    In This Topic
    Gets the scene layer type.
    Syntax
    public FeatureSceneLayerType FeatureSceneLayerType {get;}
    Public ReadOnly Property FeatureSceneLayerType As FeatureSceneLayerType

    Property Value

    FeatureSceneLayerType
    Example
    Search Rows on the FeatureSceneLayer
    //var featSceneLayer = ...;
    if (!featSceneLayer.HasAssociatedFeatureService)
      return;//Search and Select not supported
    
    //Multipatch (Object3D) or point?
    //var is3dObject = ((ISceneLayerInfo)featSceneLayer).SceneServiceLayerType 
    //                                  == esriSceneServiceLayerType.Object3D;
    var is3dObject = featSceneLayer.FeatureSceneLayerType == FeatureSceneLayerType.Object3D;
    await QueuedTask.Run(() =>
    {
      var queryFilter = new QueryFilter
      {
        WhereClause = "Name = 'Ponderosa Pine'",
        SubFields = "*"
      };
    
      int rowCount = 0;
      //or select... var select = featSceneLayer.Select(queryFilter)
      using (RowCursor rowCursor = featSceneLayer.Search(queryFilter))
      {
        while (rowCursor.MoveNext())
        {
          using (var feature = rowCursor.Current as Feature)
          {
            var oid = feature.GetObjectID();
            var shape = feature.GetShape();
            var attrib = feature["Name"];
            if (is3dObject)
            {
              //shape is a multipatch
            }
            else
            {
              //shape is a point
            }
            rowCount += 1;
          }
    
        }
      }
    
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also