I am trying to work out how to have the arcmap active view refresh every few minutes or so automatically. This is so I can track the movement of some ships. At this stage it is to prove a concept. I know there is the arcpy.RefreshActiveView function, but I need it automatically plus the time frame. Any ideas? This is for Version 10
>>> import arcpy >>> from arcpy import mapping as m >>> from time import sleep >>> mxd = m.MapDocument('CURRENT') >>> df = m.ListDataFrames(mxd, "Layers")[0] >>> count = 0 >>> while count < 5: ... sleep(5) ... arcpy.RefreshActiveView() ... count +=1
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.