Seems like this should be dead simple. I'm writing an add-in for ArcMap 10 in VB.Net. I need code that will reproduce the 'Selection --> Zoom To Selected Feature' menu option.
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
You can call the built-in command for "Zoom to Selected Features" using the CLSID or ProgID. {AB073B49-DE5E-11D1-AA80-00C04FA37860} esriArcMapUI.ZoomToSelectedCommand http://resources.esri.com/help/9.3/arcgisdesktop/com/shared/desktop/reference/ArcMapIds.htm |
|||
|
|
I had problems implementing the above solutions - the syntax hadn't been updated. This is my solution.
This was written for an add-in using ArcGIS 10sp2 and Visual Studio 2008. |
||||
|
|
|
|||
|
|