I want to view the output of ArcPy scripts (run in Python IDLE) in ArcMap.
I tried refreshing the ArcMap data frame after I run the script.
This does not work. Please advise me on this?
-
Are you saving the map document in your code before refreshing?artwork21– artwork212012年06月11日 13:42:13 +00:00Commented Jun 11, 2012 at 13:42
-
Changes to the data should work either way, but if you change the extent you'd have to save the map document.Roy– Roy2012年06月11日 14:33:54 +00:00Commented Jun 11, 2012 at 14:33
-
It is not clear from your question whether your script changes underlying data (if you try to do that while ArcMap is open I think you'll encounter a lock) or map properties. If you can edit your question to provide a code snippet then it will be much easier to try and advise.PolyGeo– PolyGeo ♦2015年10月04日 02:22:22 +00:00Commented Oct 4, 2015 at 2:22
1 Answer 1
Run your Python scripts in the built in Python window in ArcMap. Changes will be displayed if you make references to the "CURRENT" map document.
Python Window in ArcGIS
Refresh active view will help if you're interested in changing the extent, otherwise layers are generally added to the map automatically with the exception of feature layers.
-
1I recommend clipping the image. As it is now it's a 90% white and featureless block and the actual area of interest is not legible.matt wilkie– matt wilkie2012年06月11日 15:51:20 +00:00Commented Jun 11, 2012 at 15:51