0
votes
0answers
8 views

Current map document in python tool

I am attempting to use this code in a tool that I am working on: mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] XMIN = df.extent.XMin YMIN = df.extent.YMin XMAX ...
0
votes
0answers
13 views

Need help in ArcPy : UniqueValuesSymbology

I am using ArcGIS for Desktop 10.1 and Server 10.1 on my machine Windows 7. I am newbie in python & running simple python script for UniqueValuesSymbology it running fine if I use mxd as ...
0
votes
1answer
28 views

Overwrite existing map service in ArcGIS Server 10.1 (through ArcPy)

I am using ArcGIS DT and Server 10.1. I want to over write existing map service though ArcPy and going through this link and getting an errorRuntime error Traceback (most recent call last): File ...
0
votes
1answer
32 views

Can ArcPy collapse layer in current data frame?

Online arcgis resource help provides a list of layer properties which can be used as needed. I am not able to find a way to collapse a layer using arcpy in it. Please suggest if there is a way to ...
1
vote
1answer
33 views

arcpy.mapping Graduated Colors Symbology

I'm trying to figure out how to apply graduated color symbology to a feature class by using arcpy.mapping in ArcMap 10.1. To start, a script runs and a feature class is added to a map document, no ...
0
votes
0answers
27 views

arcpy.mapping ErrorHandling not existing

After 11 years our work group filesystem holds a lot of old arcmap project mxds and layer files. Also our geodatasources need some reorganization. So I wanted to create a script which iterates through ...
1
vote
1answer
80 views

Add raster catalog to MXD using arcpy.mapping

Using the bit of code below adds the raster catalog footprint polygon layer. mxd = arcpy.mapping.MapDocument("Current") df = arcpy.mapping.ListDataFrames(mxd, "*")[0] addOrtho2011 = ...
2
votes
1answer
61 views

definition query and mosaic dataset from gdb ArcMap 10.1 SP1

I have a Python AddIn Combobox to select a value from the drop-down list. This value changes the definition query of the layers in mxd. This works fine for "normal" feature classes, not for a mosaic ...