You can use the zoomToSelectedFeatures on the DataFrame class:http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataFrame/00s300000003000000/or you can use the getSelectedExtent method on the Layer class (and apply that extent to the data frame object).http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Layer/00s300000008000000/Jeff
still couldn't get the zoomToSelectedFeature thing to work. But my coworker did this successfully with dataframe.PanToExtent(lyr.getSelectedExtent)
I was trying to use python for select by attribute using variables from user input.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.