Change mouse cursor to a specific tool

2006
2
Jump to solution
09-08-2017 06:10 AM
BrianBulla
Occasional Contributor III

Is there a listing available of ToolIDs within ArcPro?  I've been looking through the API Reference and have only found one reference to esri_editing_SketchLineTool, but I would imagine there must be a whole list of them somewhere.

What I want to do is automatically switch to the Select tool after a MapTool I am coding is finished running.

Thanks,

0 Kudos
1 Solution

Accepted Solutions
BrianBulla
Occasional Contributor III

I found it!!

FrameworkApplication.SetCurrentToolAsync("esri_mapping_selectByRectangleTool");

View solution in original post

0 Kudos
2 Replies
BrianBulla
Occasional Contributor III

I found it!!

FrameworkApplication.SetCurrentToolAsync("esri_mapping_selectByRectangleTool");

0 Kudos
UmaHarano
Esri Regular Contributor

Glad you found it!  

The IDs are listed in the Pro SDK wiki pages in this page:  ArcGIS Pro DAML ID Reference

You can also see them in Pro when you enable the control IDs to be displayed.

Control IDs

Also, there is a Pro SDK Utility that you could use to get the DAML ids directly into you Add-in solution.

ArcGIS Pro SDK for .NET utilities