AnsweredAssumed Answered

Use a custom map tool's functionality in a button on a dockpane

Question asked by ksarmiento on May 13, 2019
Latest reply on May 14, 2019 by UHarano-esristaff

Hi, 

 

I've made a very simple, custom map tool that selects features with a rectangle sketch outline (it's basically 'Select by Rectangle' tool). I made my own tool instead of using Esri's DAML ID for the select by rectangle tool because I want to have my own functionality for OnMouseUp. 

 

I know how to make this tool and access it in the Pro Add-in ribbon tab. However, how would I be able to use my tool's functionality in my own button on my own dockpane? 

 

I've tried looking at the Config.daml for my custom tool's button id, so that i could do something like this: 


FrameworkApplication.SetCurrentToolAsync("my_custom_tool_id");

 

However I couldn't get it to work. Am I on the right path?

 

Thank you.

Outcomes