Select to view content in your preferred language

Customize ArcGIS Pro context menus (easily)?

4838
5
11-30-2016 01:34 PM
EvanThoms
Frequent Contributor

I have not found a way to customize the right-click context menus in AG Pro (through the GUI like you can in ArcMap). Is this possible?

5 Replies
DanPatterson_Retired
MVP Emeritus

I could only find the editor toolbar Customize the editing toolbar—ArcGIS Pro | ArcGIS for Desktop 

Or the application and ribbons Application settings—ArcGIS Pro | ArcGIS for Desktop 

but little else.  A visual of what you are trying to customize might provide a suggestion

0 Kudos
Robert_LeClair
Esri Notable Contributor

I asked one of our Developer staff about this - his response:

I know you can create a context menu:

http://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic10135.html

 

 

 

You cany use an updatemodule to modify an existing menu, but I’m unsure if they are categorized.

 

 

 

Dynamic Menus can be used to populate a menu with commands on the fly:

 

<dynamicMenu caption="Acme Menu"

                         className="DynoMenu"

                         id="acme_dynoMenu"

                         largeImage="pack://application:,,,/ProTestApp;component/Images/MenuImage32.png"

                         smallImage="pack://application:,,,/ProTestApp;component/Images/MenuImage16.png" >

              <tooltip heading="Heading" image="pack://application:,,,/Acme;component/Images/MenuImage16.png">Some text</tooltip>

            </dynamicMenu>

 

http://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic10440.html

 

Those are cool if you want to build a context menu and dynamically specify what it holds based on the context (you could add different tools depending on whether you click on a point geometry vs a polygon, for example).  That’s a pretty cool option. J

Hope this helps.

Robert LeClair

Esri-Denver

EvanThoms
Frequent Contributor

Ok, thanks. I figured the only way was through ArcObjects. 

JonBrandt115
Occasional Contributor

For folks who have to edit a lot of data in a production environment this ability was very helpful in ArcMap.  I used to add "Save Edits" to a couple different context menus so that I could just right click and select the icon.  Same with "Merge" and "Split".  It cut down on the time trying to find the icon in the ribbons or additional windows.  I don't want to have to create a new Context Menu I just want to add shortcuts to already existing menus.  It would be awesome if we had this ability again in Pro. (See first attachment)

In ArcMap I've added to my "Edit" context menu the ability to directly access the 6 tools outlined in red (See 2nd attachment). I inserted "Add Lats at Connection" twice so that depending on how the menu popped up I could quickly choose it from the top of the list or the bottom. If I completed a major project I might go back and get rid of one of these additional tools to unclutter the menu.

0 Kudos
Carsten_Berens
Emerging Contributor

We completely agree with Jon. We have been waiting for the ability to customise the context menus since we started working with ArcGIS pro. The customised Edit Tool Menu (see attachtment) was very effective for extensive editing work.
Dear Esri developers, please integrate "Customisable Context Menus" back into ArcGIS Pro.