ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping.Events Namespace / SketchCompletedEventArgs Class / Sketch Property
Example

In This Topic
    Sketch Property (SketchCompletedEventArgs)
    In This Topic
    Gets the final sketch geometry.
    Syntax
    public Geometry Sketch {get;}
    Public ReadOnly Property Sketch As Geometry
    Example
    Listen to the sketch completed event
    // SketchCompleted event is fired by 
    //  - COTS construction tools (except annotation, dimension geometry types), 
    //  - Edit Vertices, Reshape, Align Features
    //  - 3rd party tools with FireSketchEvents = true
    
    
    //Subscribe to the sketch completed event
    //ArcGIS.Desktop.Mapping.Events.SketchCompletedEvent.Subscribe(OnSketchCompleted);
    
    private void OnSketchCompleted(SketchCompletedEventArgs args)
    {
      // get the sketch
      var finalSketch = args.Sketch;
    
      // do something with the sketch - audit trail perhaps
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also