how to auto pan the map in dataview in arcmap?

157
0
11-22-2023 06:54 PM
pyfans
by
New Contributor II
I have create a python-addin with two buttons as 'Start' and 'End'. In 'Start', I use 'SearchCursor' to get feature's geometry and "df.panToExtent(geo.extent)" to pan to the feature's extent, and 'refreshAcitveView', ‘’time.sleep(2) ‘ , then continue to next feature, but the map dataview doesn't move as I expected. If I use 'break' in curs loop, then it can pan to the first feature's extent. So is there any idea? If the 'Start' can realise the function I expected, then I want to know how to stop the "auto pan" in 'End' button, thank you.
0 Kudos
0 Replies