In ArcMap, the file that contains one map, its layout, and its associated layers, tables, charts, and reports.

learn more… | top users | synonyms

2
votes
2answers
1k views

Collapse layers in ArcMap Table of Contents using ArcObjects

Can someone offer up a Christmas present here? I'm stuck on how to collapse all layers in my ArcMap projects (9.3). I've tried a few bits of sample code, but they all seem to fail for some reason or ...
2
votes
0answers
283 views

Create ESRI ArcSDE Connection File (.sde) using Python/ArcPy at the ArcView license level?

Is there an alternative way to create ArcSDE connections in ArcGIS 10.0 using Python at the ArcView license level? I need to create 4 separate connection files for a MXD SDE data source re-point tool. ...
2
votes
0answers
92 views

Why are updates made in MXD by my tool not visible on some machines?

I've developed a tool that makes updates in many mxd files. When it runs in my machine, everything works fine, and I can open the mxd and see the updates made by the tool. When the tool runs in any ...
2
votes
0answers
265 views

ArcObjects : How to change layers connection properties without losing joins

I'm using arcObjects 9.2.6 java librairies to change connection/path properties within a java prog. This prog aims to change path and connection properties for all layers of an mxd file. It works well ...
1
vote
3answers
134 views

Is there a way to copy the mxd file with all of the files in that in ArcGIS?

Obviously the mxd doesn't contain the gdb files, and the linked raster files. So when I copy a project, I need to search manually the 49 raster maps from the other 4000. Is there an easier way to copy ...
1
vote
3answers
434 views

How to get index number of list item using Python?

this gives me a list of all 55 layers in my mxd import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layer")[0] for lyr in arcpy.mapping.ListLayers(mxd, ...
1
vote
1answer
1k views

Use ArcPy to rename MXD layers

I have a MXD with some layers that have parentheses in them. I'd like to rename them via script. Is this a valid approach? import re map = arcpy.mapping.MapDocument("CURRENT") layers = ...
1
vote
1answer
112 views

How to convert MXD to DWG File

I have been trying to export from MXD format to DWG format without much success. I used the Export to CAD conversion tool in GIS 9.3 but it only converts the lines and polygon.. etc to DWG format and ...
1
vote
1answer
116 views

How can I export a list of an mxd's content (layers names) into a table or a pdf?

I am using Arcgis 10.2. I have created a set of mxd from which I need a list of the layers and their characteristics (Name, sources, symbologie - maybe as in legend, if there is an Definiton Query, ...
1
vote
1answer
438 views

Generate MXD layer info report

I'd like to generate a report about MXD layers for a handful of MXDs. I want the report to display their name, workspace path and scale range settings. I can get the first two with ArcPy but I didn't ...
1
vote
1answer
163 views

Can we read/write MXD Document using GeoTools

Is it possible we can read/write mxd document only using geotools.
1
vote
2answers
494 views

ArcGIS Server 9.3.1 - Creating a MXD and Exporting a PDF From It

I've been tasked with developing a geoprocessing service in ArcGIS Server 9.3.1 that in addition to providing the resultant feature sets, it needs to produce a pdf in which the layers can be toggled ...
1
vote
1answer
47 views

Updating MXD layer definitionQuery in arcpy is very slow

The code segment below has been extracted from a larger project. In short, I have an MXD which I want to generate multiple PDFs based on different criteria. The code below works. It loops through ...
1
vote
2answers
77 views

How to find out to which road each points belongs to?

I am new to GIS . I hava a folder it include a .mxd file and a .gdb folder, the .gdb folder hava many .gdbtable and .gdbindexes files etc, it's a road network data of a city. Now, I want to know ...
1
vote
1answer
191 views

Trouble registering datasets with ArcGIS Server 10.1 before publishing an MXD

I'm having trouble registering a dataset while attempting to publish an MXD to ArcGIS Server in 10.1. ArcMap and ArcGIS Server are 10.1, and the MXD was originally created in a previous version of the ...
1
vote
1answer
362 views

Loading an extension-related mxd in ArcMap by double clicking it

I am currently working in a company offering GIS solutions, and using ArcGIS tools on a daily basis. One of their main products is an ArcMap extension, which I am assigned on to correct some remaining ...
1
vote
1answer
417 views

Convert .mxd to .qgs, MXD2QGS fix?

I've had a look at the following thread about using MXD2QGS and so far I've figured out that this only works with version 10.0 and Python 2.6. I installed MXD2QGS on a machine with Arc10.0 and Python ...
1
vote
1answer
223 views

Change coordinate system in multiple MXDs ArcGIS 9.3 using Python

I have to loop through some folders which may contain *.mxd files and change their coordinate system. I already found this piece of Python which should do the trick for ArcGIS 10.x (from here): ...
1
vote
1answer
177 views

How to programatically replace ArcGIS Online image with new imagery in mxd's?

I have many mxds that previously used ArcGIS Online Bing imagery. I want to replace those with newly purchased imagery. I know I need to use the arcpy.mapping.MapDocument module to do this though not ...
1
vote
2answers
208 views

What is the difference between Geoprocessing Map object vs. MapDocument object in Python

I have the following code: mxd["C1"] = arcpy.mapping.MapDocument(os.path.join(fRoot, filename)) mxd["C2"] = [arcpy.mapping.MapDocument(os.path.join(fRoot, filename))] C1 creates a geoprocessing Map ...
1
vote
1answer
74 views

Change printer for a specific map document from Arcpy

Is it possible to change the printer for a particular map document from ArcPy? The mxd is saved with the default printer settings, and I know with the PrintMap() function one can specify the printer ...
1
vote
1answer
797 views

arcgis server 10 tif mxd problem

i am using arcgis server 10. first i opened arcmap and added a.tif file. then i saved it using File -> Save As as a ArcMap Document (*.mxd) file, let's say b.mxd. Now i open arccatalog and ...
1
vote
0answers
46 views

How to repair a data source with joins to Excel?

I have a set of MXD files, that do not use relative paths, and related data that have been copied to a new computer. Normally it's not a big problem to repair the data sources in the project, but in ...
1
vote
0answers
77 views

Why does Describe function fail on annotation layer with RuntimeError: Object: Describe input value is not valid type?

I am accessing layers in an mxd programatically and also accessing the layer properties using the Describe function lyr =arcpy.mapping.ListLayers(mxd) # gets me the list of layers in mxd desc= ...
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
106 views

How to use ArcGIS to reverse geocode and get road segment number?

I am now in a project which need to make reverse geocoding , namely ,given the latitude and longitude(assumed that the location is in a street), I want to get the road segment it is located in. What I ...
1
vote
1answer
97 views

Update Service config file with ArcIms java connector

We are using arcims java connector to create, update, delete services. it works fine for create and delete. However when we try to update the config file of service (ie : mxd file) the new mxd file is ...
1
vote
0answers
71 views

Why are the special fonts in a .mxd-project not used/found?

I have a .mxd-project file from a customer which uses special fonts (TrueType). I installed these fonts in Windows but my application (mostly a MapControl) doesn't use these fonts for displaying. I ...
0
votes
3answers
139 views

Is it possible to publish a ArcGIS .mxd file in OpenLayers?

It is possible to publish a .mxd in OpenLayers? I am using ArcGIS 10.0.
0
votes
1answer
902 views

Find and Replace data source script

The following script is supposed to find and replace all shapefiles in a mxd (that exist in the folder) to the new SDE data source. No errors when running the script however, when I open the MXD in ...
0
votes
1answer
268 views

Python Error while Publishing mxd ArcGIS 10.1

Hi I was in the process of publishing my mxd , I had reached till the analysis step where I encontered the error at staging the service. Before this below mentioned code I had created a connection ags ...
0
votes
1answer
206 views

How to export multiple MXDs to PNG without using VBA?

Okay, so I can feel that I am so close to solving this issue with the help of Jason (below) but I have modified to use as a script. The GetParameterAsText returns the following error when trying to ...
0
votes
1answer
116 views

Difference between a *.lyr and layer directly added from *.gdb/sde to mxd?

What is the difference between a *.lyr and a layer directly added from *.gdb/sde to mxd? Doing it difference in mxd? Which is better?
0
votes
1answer
206 views

How to extract list of layers in MXD using ArcGIS Desktop 9.3.1 and Python 2.5?

I have been trying to extract a list of all the layers in my mxd (Arc9.3.1), using Python 2.5. If I could have the source of the layers too that would be even better... But as long as I can get a list ...
0
votes
1answer
73 views

How to add layers to MXD programmatically on linux or windows without ArcGIS for Desktop?

Is it possible for me to programmatically create in linux centos 6.4 or a windows with only arcGIS Engine runtime (single use license without sdk)?
0
votes
1answer
42 views

Loading graph (.grf fle) into MXD using ArcPy?

I have hundreds of pairs of FGDB and associated MXD files. I need to insert a graph in each mxd linked to its corresponding FGDB. No problem creating graph, but stuck on how to get graph into mxd ...
0
votes
1answer
74 views

Export data from .mxd file to ms sql database

I am using ArcGIS product (v.10.1). I have also tempalte of Maps from ArcGIS. But i need to get data from maps (.mxd files) to store it into MS SQL database. Explanation: I have application that has ...
0
votes
0answers
15 views

CreateObject cannot open map document error when cycling through list of MXDs

I have a stand alone Python script that aims to make a list of data sources from a series of folders/sub-folders full of MXDs. However I am continually getting the: CreateObject cannot open map ...
0
votes
0answers
93 views

Is it possible to read the map style and symbols from ArcGIS mxd

We used to use ArcGIS File Geodatabase(data source) and MXD file(for styling the map) to edit,style, and generate the final tiled map. Now we want to try with mapnik, but there are so many types of ...
0
votes
2answers
170 views

How to add a Data Frame to mxd in a c# stand-alone application?

I am writing a stand-alone application in c# (using vs2010). I have ArcGis Desktop license. I only need to insert a new data frame in an mxd file and save this mxd. So: I create MxDocument coclass. ...
0
votes
0answers
134 views

XML file created when .mxd is saved

I have ArcGIS 10.1 and Xtools 10.0, each time .mxd is saved there is a .xml file created. How do you prevent the creation of the .xml file with the same name as the .mxd? Where in the Xtools menu is ...
-1
votes
2answers
182 views

Export MXDs files to PDFs using Python [closed]

I'm trying to write a python script that will export multiple MXDs to individual PDFs while using a feature class field to rename the pdfs (this can be an optional field, if not check it can copy the ...
-1
votes
1answer
164 views

ArcGIS Engine--load mxd file to map control or pagelayout control?

When load a mxd file using ArcGis engine,how to automatically detect whether it's saved in mapcontrol or pagelayout control?Thanks!