The script I'm writing requires a specific attribute of the building polygon that the data frame extent is currently focused on. Is there a way to grab this data?
In ArcGIS 10, you can use arcpy.mapping to do this. It would look something like:
mapdoc = arcpy.mapping.MapDocument("current") dataframe = arcpy.mapping.ListDataFrames(mapdoc, mapdoc.activeView) extent = dataframe.extent
You can then pass the extent in as parameters to GP tools etc.