1
vote
1answer
14 views

Creating map documents based on similar feature class selection

I wondering if something like this is possible. I would like to create a PDF output using a pre-established map template. The tricky part is I want to create maps in batch by adding (what will usually ...
2
votes
1answer
45 views

Flagging when point feature(s) covered by tables (made as graphics) using ArcPy?

I've set up data driven pages to create a series of maps, but I'm running into a problem which seems like it would be quite common! I've made some tables (as graphics) using ArcPy and the technique ...
1
vote
1answer
40 views

Can i use CreateMapSDDraft in the arcpy.mapping library to set the scale range on tiled services at 10.1?

I know that esri has exposed many properties to the acrpy lib for publishing services. I need to published a tiled/cached map service but i need to set the min/max scale when i do that. Can this be ...
0
votes
1answer
50 views

replace data source for all layers that point to shapefile

Hi I'm trying to do something quite simple but its not working. I want my python script to change all of the layers that point to the same datasource (a point shapefile) to another point shapefile. ...
2
votes
1answer
159 views

How to generate dynamic legend using ArcPy?

I used this example to produce printing service. As the result I get map with too many elements in the legend. Is it possible ti show classes that are visible in the current map extent using python ...
0
votes
1answer
70 views

I can't seem to use arcpy.mapping print command. It's not displaying the mxds in the loop

Here's the code for the third parameter that list the local printers: # Third Parameter printer = arcpy.Parameter( displayName="Select a Printer", name="printer", datatype="String", ...
4
votes
1answer
239 views

How to add Table to Layout View using ArcPy?

I am using ArcGIS 10.1 and I have a non-spatial table and some layers in a Data Frame. When I switch to Layout View I want to be able to show the map in a data frame element and the table in another ...
0
votes
2answers
154 views

How to export a MXD to a PDF but only switching the folder

Let say I have two variables. InputMXD = parameters[0].valueAsText PDF_Folder = parameters[1].valueAsText I have my inputMXDs to have multivalues so I'll have around 10 mxds each time the ...
0
votes
1answer
74 views

Listing Printer names in a Python Toolbox in Arcgis 10.1?

Here's my code for my third parameter in my Python Toolbox. When I run the toolbox and look at the list of printers, it only shows one of them. My print command of 'printerName' lists all of them in ...
1
vote
1answer
65 views

consecutive generate Sql query using script arcpy

I am using arcgis 10.1 I am currently doing a lot of sql query feature class and I am thinking of automating this process so far my escrip is as follows import arcpy ...
0
votes
2answers
250 views

How to List Tables from current map document (mxd)?

We have many maps containing Feature Classes and Tables in a Personal Geodatabase that need their information updated. Is there a function to List Tables from the current map document like mxd = ...
1
vote
0answers
21 views

Fix broken SDE layers with Arcpy - unexpected error [duplicate]

We are in the middle of our ArcGIS 9.3 to 10.1 migration project and we have a lot of custom map documents (from different users) that among others, point to our current 9.3 SDE database. After our ...
1
vote
0answers
56 views

Weird Error when setting the source path in the “PICTURE_ELEMENT”

I am trying to set the sourceImage to a tiff file using this code: m=1 pic = arcpy.mapping.ListLayoutElements(mxd,"PICTURE_ELEMENT" , str(m))[0] pic.sourceImage = ...
3
votes
3answers
395 views

Additional Parameters for PrintTask?

Hi Guys I'm writing a custom GP tool for printing with 10.1. I need to pass some additional parameters into GP tool. I'm using printTask from jsapi and I couldn't add more parameters just by adding to ...
3
votes
0answers
67 views

Is it possible to access individual pages within an existing pdf using arcpy.mapping?

I've used the arcpy.mapping module for some time now to create mapbooks and other pdf documents, using a combination of Data Driven Pages and Python. I would like to take an existing pdf and save each ...
1
vote
0answers
57 views

Convert List by Source to List by drawing order using arcpy

When I do some calculations, it results in adding a table to TOC which converts "List by drawing order" to "List by Source". I want to convert it back to "List by drawing order" using arcpy and I am ...
0
votes
2answers
130 views

Unable to execute ArcPy module outside of ArcGIS environment

I am using ArcGIS for Desktop 10.1 (Arc Info license) and ArcGIS for Server 10.1 and automating few things on server level and getting interesting errors. I am overwriting map service through this ...
1
vote
1answer
588 views

How to use 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
1answer
142 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
622 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 ...
1
vote
1answer
204 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
468 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 ...
1
vote
1answer
214 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 = ...
3
votes
1answer
141 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 ...