Can I get access to the Select one or more features control (with different shapes-rectangle,polygon,...) in ArcGIS Pro SDK C#?

09-10-2019 07:41 AM
New Contributor II

I would like to use the "Select one or more features" tool in a custom dock pane I created. 

Is there a way I can access this functionality using the ArcGIS Pro SDK for C#?

The closest tool I could find from this link: DAML ID Reference Editing.daml · Esri/arcgis-pro-sdk Wiki · GitHub 

esri_editing_EditVerticesNormal - It brings up a dock pane with a select tool but I don't want 
to edit the vertices

My Use case:

I have a connect and disconnect button (similar to existing Move, Rotate). When I click either of them, I need to open a new dock pane with the select one or more features active which selects only a particular feature and has buttons on the dock pane which Activates once the selection is valid.

I found a sample project close to it: arcgis-pro-sdk-community-samples/Map-Exploration/FeatureSelection at master · Esri/arcgis-pro-sdk-co... 

But it has only one select (by rectangle). I would like to replace that select tool with Esri's default feature selection tool as shown in the above image. 

In short, I would like to create a feature similar to Move, Rotate that performs a different operation using a similar dock pane as Esri's. 

Is there a way I can get access to this functionality. Instead of Move/Rotate/Scale, I would like to have my own functionality like Connect, Disconnect.

1 Reply
Occasional Contributor

Hello Anandha,

if you are just looking for the ArcGIS Pro select tools:

then you should be able to get the controls by the following DAML IDs:

Name: Circle 
ID: esri_mapping_selectByCircleTool
Condition: esri_mapping_mapPane

Name: Lasso
ID: esri_mapping_selectByLassoTool
Condition: esri_mapping_mapPane

Name: Line
ID: esri_mapping_selectByLineTool
Condition: esri_mapping_mapPane

Name: Polygon
ID: esri_mapping_selectByPolygonTool
Condition: esri_mapping_mapPane

Name: Rectangle
ID: esri_mapping_selectByRectangleTool
Condition: esri_mapping_mapPane

Name: Trace
ID: esri_mapping_selectByTraceTool
Condition: esri_mapping_mapViewingMode2DState

Taken from: DAML ID Reference ADMapping.daml · Esri/arcgis-pro-sdk Wiki · GitHub 

Then you should follow this link to use an existing controls logic from your code:
ProGuide Reusing Pro Commands · Esri/arcgis-pro-sdk Wiki · GitHub 

Hope that helps a little bit.