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"))
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.
Easiest way is to select all features you want within your map extent and zoom to selected.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.