ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureSceneLayerType Enumeration
Example Example

In This Topic
    FeatureSceneLayerType Enumeration
    In This Topic
    An enumeration to represent the scene layer type.
    Syntax
    Members
    MemberDescription
    Object3D Object 3D.
    Point Point.
    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;
          }
    
        }
      }
    
    });
    Hide Selected features and Show Hidden features
    //var featSceneLayer = ...;
    if (featSceneLayer.HasAssociatedFeatureService)
      return;//Search and Select not supported
    
    await QueuedTask.Run(() =>
    {
      QueryFilter qf = new QueryFilter()
      {
        ObjectIDs = new List<long>() { 6069, 6070, 6071 },
        SubFields = "*"
      };
      featSceneLayer.Select(qf, SelectionCombinationMethod.New);
    
      featSceneLayer.HideSelectedFeatures();
      var selectionCount = featSceneLayer.SelectionCount;
    
      featSceneLayer.ShowHiddenFeatures();
      selectionCount = featSceneLayer.SelectionCount;
    
    });
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Mapping.FeatureSceneLayerType

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also