ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureSceneLayer Class / ShapeType Property
Example

In This Topic
    ShapeType Property (FeatureSceneLayer)
    In This Topic
    Gets the feature scene layer's shape type.
    Syntax
    public esriGeometryType ShapeType {get;}
    Public ReadOnly Property ShapeType As esriGeometryType
    Example
    Create a new Point feature in FeatureSceneLayer
    //must support editing!
    //var featSceneLayer = ... ;
    if (!featSceneLayer.HasAssociatedFeatureService || 
        !featSceneLayer.IsEditable)
      return;
    //Check geometry type...must be point in this example
    if (featSceneLayer.ShapeType != esriGeometryType.esriGeometryPoint)
      return;
    
    var editOp = new EditOperation()
    {
      Name = "Create new 3d point feature",
      SelectNewFeatures = true
    };
    
    var attributes = new Dictionary<string, object>();
    //mapPoint contains the new 3d point location
    attributes.Add("SHAPE", mapPoint);
    attributes.Add("TreeID", "1");
    editOp.Create(featSceneLayer, attributes);
    editOp.ExecuteAsync();//fyi, no await
    
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also