Change mouse cursor to a specific tool

906
2
Jump to solution
09-08-2017 06:10 AM
Highlighted
Regular Contributor

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,

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Regular Contributor

I found it!!

FrameworkApplication.SetCurrentToolAsync("esri_mapping_selectByRectangleTool");

View solution in original post

Reply
0 Kudos
2 Replies
Highlighted
Regular Contributor

I found it!!

FrameworkApplication.SetCurrentToolAsync("esri_mapping_selectByRectangleTool");

View solution in original post

Reply
0 Kudos
Highlighted
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