Scott,You can use the ArcPy mapping module to zoom to extent or pan to a feature.
import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] df.zoomToXY(lat, long) arcpy.RefreshActiveView() del mxd
import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] df.zoomToSelectedFeatures() arcpy.RefreshActiveView() del mxd
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.