ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapTool Class / FireSketchEvents Property
Example

In This Topic
    FireSketchEvents Property
    In This Topic
    Gets or sets whether the tool supports firing sketch events when the map sketch changes. Default value is false.
    Syntax
    Protected Property FireSketchEvents As Boolean
    protected bool FireSketchEvents {get; set;}
    Remarks
    Example
    Custom construction tool that fires sketch events
    /// <summary>
    /// Represents a custom map construction tool that enables sketching of all types of geometries (points, lines, polygons) with snapping and template support in
    /// ArcGIS Pro.  ProSnippetConstructionToolLine is a specialized MapTool class configured for creating line geometries
    /// </summary>
    public class ProSnippetConstructionToolLine : MapTool
    {
      public ProSnippetConstructionToolLine()
      {
        IsSketchTool = true;
        UseSnapping = true;
        // Select the type of construction tool you wish to implement.  
        // Make sure that the tool is correctly registered with the correct component category type in the daml 
        SketchType = SketchGeometryType.Line;
        //Gets or sets whether the sketch is for creating a feature and should use the CurrentTemplate.
        UsesCurrentTemplate = true;
    
        // set FireSketchEvents property to true
        FireSketchEvents = true;
      }
      //  ...
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also