http://countysandbox.maps.arcgis.com/home/item.html?id=37c70fe48d79495083f0daf76c2663ff
This python add-in allows you to draw a rectangle extent, or click a point location, and the coordinates will be copied to your clipboard for easy pasting. The coordinates will be returned in the Data Frame's map units.
This add-in uses the win32clipboard module, which is part of the pywin32 module. This will need to be installed before the add-in. To install pywin32:
- Go to http://sourceforge.net/projects/pywin32/files/pywin32/
- Choose the latest build
- Download the installer for your system, ex: pywin32-219.win32-py2.7.exe
- Run the installer
This add-in is helpful when you need the extent for a web application that you are developing. For example, with the ArcGIS API for JavaScript, you can set the extent or center for the Map constructor.