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.
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.