zoom to selected features

Discussion created by dodgyshamrock on Aug 24, 2011
Latest reply on Apr 23, 2017 by ed_mtns

I'm trying to write what *should be* a simple script to allow a user to input a nest number and zoom to that feature.  I have been playing around with the script for two days now and alternately ArcMap either crashes or it tells me that the script has run successfully but it does not actually zoom in anywhere.  Any suggestions?  Script is below:



I've tried both the df.zoomToSelectedFeatures as well as the lyr.getSelectedExtent.  ArcMap seems to crash more when using the zoomtoselectedfeatures. 


Amy Meehan