ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Core Namespace / EditingOptions Class / FallbackTool Property
Example

In This Topic
    FallbackTool Property
    In This Topic
    Gets and sets the current fallback tool. This tool will be activated when an editing tool is deactivated.
    Syntax
    public string FallbackTool {get; set;}
    Public Property FallbackTool As String
    Remarks
    If the damlIDs supplied is not one of the possible fallback tools (see GetFallbackTools) then it will be ignored and the current fallback tool will not be changed.
    Example
    Default or Fallback Tools
    // A fallback tool is the tool that will be activated when an editing tool
    // is deactivated; (when the Escape key press for example)
    
    // To register a tool as a fallback tool, add the following into your
    // add-in's config.daml file
    
    // <updateModule refID = "esri_editing_EditingModule">
    //   <menus>
    //     <updateMenu refID = "esri_editing_DefaultTools">
    //       <insertButton refID = "MyAddIn_MyCustomTool"/>
    //     </updateMenu>
    //   </menus>
    // </updateModule>
    
    var options = ApplicationOptions.EditingOptions;
    
    // get the list of fallback tools that are registered
    var fallbackTools = options.GetFallbackTools();
    // get the current fallback tool
    var fallbackTool = options.FallbackTool;
    
    // set the fallback tool
    // (MyAddIn_MyCustomTool must be added to the "esri_editing_DefaultTools" list)
    options.FallbackTool = "MyAddIn_MyCustomTool";
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also