AnsweredAssumed Answered

Really basic question about Python window - layers not available

Question asked by rosie_bell on Oct 22, 2012
Latest reply on Dec 3, 2012 by rosie_bell
I'm sure this is ridiculously simple, but I can't get it to work.

I'm using the arcpy.Clip_management tool. When I type the following into the window:

arcpy.Clip_management("

A drop down box appears, showing all the raster layers that exist in my mxd. I can select one and then complete the rest of the script.

However, if I've started using the python window, then add another layer to my mxd, it doesn't appear in the down down box when I reach this point in the script. It's almost like it needs a refresh to appear. At the moment the only thing I've found to work is restarting ArcGIS. The attached image shows 3 rasters in the table of contents - bunbury, cli7, and perth - but only the original two come as options in the Python window.

TIA.[ATTACH=CONFIG]18634[/ATTACH]

Attachments

Outcomes