5

In ArcMap 10 table view, is there a way to set up a hotkey that when a feature is selected, pressing say "z" is equivalent to right-click-->Zoom To?

I would like to be able to highlight a record and just press "z" to zoom to the feature, "p" to pan to the feature and keep the same zoom, etc. It seems simple enough, but I cannot seem to find a place to set up this function.

Am I missing something simple? I just want to replicate the function shown below without the 2 additional mouse clicks.

enter image description here

5

There are preset shortcuts, but I don't now how to change them. For Zoom To Selected Feature, the hotkey is [CTRL] + [SHIFT] + [=]

Read the ArcGIS Help @ Keyboard shortcuts for working with tables, for other keyboard shortcuts.

  • 2
    usually a post the says "Search the web for..." is not as detailed as this community would like. However you did lead me to an answer, so I took the liberty of editing your answer to make it more useful to other readers. – RyanDalton Nov 8 '11 at 16:13
  • Thanks for the comment. But it only works when I select a record in the table. When I click on a feature in the map itself, [CTRL] + [SHIFT] + [=] doesn't do anything for me – AndrewLebron Feb 16 '17 at 19:43
3

You can double click a record to zoom to

or you can

Use AutoHotKey to write a small script

for example:

`::^+=

pressing the "`" key would give you [CTRL] + [SHIFT] + [=] For Zoom To Selected Feature

`::^n

pressing the "`" key would give you [CTRL] + [p] For Pan To Selected Feature

What I commonly use:

This script is Content Aware so that the script runs only when the ArcMap window is open. It moves one record down in the table then pan's to that location.

SetTitleMatchMode 2
#IfWinActive ArcMap
SetKeyDelay,25,25 
`::
Send {down}
Sleep, 25 
Send ^n
Return
1

I thought you might be able to add another button that runs the Zoom To Selection function, and give the button a keyboard shortcut like &Zoom in the name. But it doesn't look like you can add buttons to the table view toolbar (never knew that).

However, if you double-click on the selection button (grey box on the left) of a row, it zooms to that feature on the map.

  • Thats what I thought too! In previous releases you could access all of the context menu's in the software, but I cannot seem to find where the table menus are at any more, if they are exposed at all. – RyanDalton Oct 14 '11 at 17:56
1

I had to make a small change to have the great answer from Tristan Forward work (ESRI must have changed the pan to feature hot key in the past few years - from Ctrl + P to Ctrl + N)

Using AutoHotKey:

SetTitleMatchMode 2
#IfWinActive ArcMap
SetKeyDelay,25,25 
`::
Send {down}
Sleep, 25 
Send ^n
Return

Works great for accuracy assessments in ArcGIS - just press the ` key to pan to the next feature in an attribute table.

  • Can't believe I'm just now finding this. Had written Avenue scripts way back in the day to do this same thing, but never could get it to work right in ArcGIS. Thanks for posting this, will save countless hours. – Rayner Sep 29 '16 at 19:36
  • @coreyevanf that's certainly quite the small change, 1 letter difference! Could have just added a comment ツ – Tristan Forward Feb 14 '17 at 12:54
0

To enter image description here any feature press Alt button and double click on the tiny box in the left side of the attribute table.

To enter image description here any feature press Ctrl button and double click on the tiny box in the left side of the attribute table.

enter image description here

To enter image description here the selected feature press Ctrl + = (or Ctrl + +) buttons.

To enter image description here the selected feature press Ctrl + N buttons.

Tested in ArcGIS Desktop 10.2.2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.