ArcGIS Pro 3.7 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 ReadOnly Property Sketch As Geometry
    public Geometry Sketch {get;}
    Example
    Listen to the sketch completed event
    // Occurs when a sketch is completed. SketchCompleted event is fired by 
    //  - COTS construction tools (except annotation, dimension geometry types), 
    //  - Edit Vertices, Reshape, Align Features
    //  - 3rd party tools with FireSketchEvents = true
    // Register for the SketchCompleted event
    SketchCompletedEvent.Subscribe(sketchCompletedEventArgs
      =>
    {
      // get the sketch
      var finalSketch = sketchCompletedEventArgs.Sketch;
    
      // do something with the sketch - audit trail perhaps
    });
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also