ArcGIS Pro 3.4 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 bool FireSketchEvents {get; set;}
    Protected Property FireSketchEvents As Boolean
    Remarks
    Example
    Custom construction tool that fires sketch events
    internal class ConstructionTool1 : MapTool
    {
      public ConstructionTool1()
      {
        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, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also