Select to view content in your preferred language

Extent Python Add-In

2088
0
10-19-2015 12:05 PM

Extent Python Add-In

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:

  1. Go to http://sourceforge.net/projects/pywin32/files/pywin32/
  2. Choose the latest build
  3. Download the installer for your system, ex: pywin32-219.win32-py2.7.exe
  4. 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.

Version history
Last update:
‎10-19-2015 12:05 PM
Updated by:
Contributors