Easiest way is to select all features you want within your map extent and zoom to selected.
If you want performance it would be fastest I would imagine to check the XY extent of your dataframe against the XY position of your point to see if it is greater than your max X and Y extents, or lesser than your min X and Y extents.
import arcpy mxd = arcpy.mapping.MapDocument("C:\GIS\dfTest\Map1.mxd") mxd.activeView = "PAGE_LAYOUT" df = arcpy.mapping.ListDataFrames(mxd)[0] lyr = arcpy.mapping.Layer('point') #Test if df extent contains the extent for the layer symbology df.extent.contains(lyr.getExtent("True"))
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.