Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there a shortcut or an extension to ArcMap 10 that would allow me to quickly copy (to clipboard) the coordinates at the current map position/click? I could implement such a functionality easily enough, however I'm hoping someone has already done so.

edit: Apparently the code is much simpler than I figured:

IPoint pt = ArcMap.Document.CurrentLocation;
Clipboard.SetData(DataFormats.StringFormat, pt.X + " " + pt.Y);
share|improve this question

2 Answers 2

up vote 3 down vote accepted

Here is a previous question that shows you how to get xy coordinate values.

How to implement mouse down event when the user clicks on the map?

You can then assign the x and y values to the clipboard.

share|improve this answer
    
Thanks @artwork21, I implemented it as a custom button this morning and added a keyboard shortcut to it. I'll post the code. –  Sasa Ivetic Oct 21 '11 at 14:16

You did not specify whether you just wanted to do this through the ArcMap GUI. If that is the case just use the Identify tool to point at a location. As well as returning features found you will see a Location bar which can be copy/pasted from.

share|improve this answer
    
My goal was to hover over any location on the map and with a single key press copy the current map coordinates. I'm aware of identify + copy coordinates, but that's too many steps. Thanks for the answer though, may help someone else in the future. –  Sasa Ivetic Oct 21 '11 at 14:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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