Wednesday 12 October 2016

arcobjects - How to get X and Y coordinate values of the map?


I want the upper right and lower left coordinate of the exposed portion of the map, and for the whole map.


What is the way to do this?



Answer



Cast the Map to IActiveView. You can then access the Extent and FullExtent properties, which will give you the desired information.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...