3

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?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Jun 11, 2012 at 11:07
3
  • Are you saving the map document in your code before refreshing? Commented 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. Commented 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. Commented Oct 4, 2015 at 2:22

1 Answer 1

7

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.

answered Jun 11, 2012 at 13:19
1
  • 1
    I 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. Commented Jun 11, 2012 at 15:51

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.