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

learn more… | top users | synonyms

1
vote
1answer
38 views

How to fix symbols of layers when I copy .mxd to another pc?

I've created a personal geodatabase with feature classes and I specified symbols for them in an mxd project. I activated "store relative pathnames to data sources" in the Map Document Properties. When ...
1
vote
2answers
138 views

how to open several MXD files at the same time ( within the same window )in Arcgis10

I have a simple question. How can I open several MXD files at the same time in Arcgis 10? Whenever I try to open the second MXD file Arcgis asks me to save the first MXD file and then it closes it ...
0
votes
0answers
48 views

Inexplicable behavior after function call using 'arcpy.mapping.ListLayers'

I have seen some discussions regarding (eventual) bugs when using acrpy.mapping.ListLayers (and perhaps(?) other 'mapping' methods) where the (current) mxd is passed. I have a feeling the following is ...
0
votes
1answer
255 views

Setting path to Variable to be able to open new mxd? [duplicate]

Possible Duplicate: How to define Subroutines and functions? I know its strange but I need to be able to open a new mxd into an existing one. Yes, it can be done. All I need to do is set a ...
0
votes
2answers
53 views

Using ArcPy, I can't panToExtent to intended area using Decimal Degree coordinate

I'm trying to programmatically pan to a coordinate before I export a map and I've started off by using Identify to get a test coordinate in Decimal Degrees: mxd = arcpy.mapping.MapDocument("CURRENT") ...
3
votes
1answer
278 views

How to clip a Oracle query layer directly in a Python script?

I have a query layer directly running from ORACLE database in a MXD. I want to clip this layer with a layer being created in another MXD in a Python based tool. My question is to do this clip ...
1
vote
0answers
254 views

Relative Path not working in ArcMap and ArcObjects

I'm using ArcMap 10.0 and Windows 7 64 bit. I'm trying to set a relative paths for my MXD file. My MXD is located at C:\workspace\rastertest.mxd and the data is located at ...
2
votes
1answer
29 views

Installing Mxd2Qgs plugin in QGis 2.12

My purpose is to use the Mxd2Qgs plugin in order to be able to use mxd files with QGis. I have downloaded the Mxd2Qgs file and unzipped it. I put it in the folder: C:\Program Files\QGis ...
1
vote
1answer
221 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= ...
4
votes
1answer
228 views

Embedding Images in map layouts and documents (*.mxd)?

I wanted to place some images in my map layout but I found that images are not embedded in the MXD files so now, after I deleted them, I've lost the graphics and have to do them again. Is here any ...
2
votes
2answers
43 views

How to use loop to add georeferenced JPEGs from folder to mxd?

This is my first time using this site and I'm a bit new to ArcPy. I've looked around for a while but couldn't quite find the answer I was looking for. I have many folders with georeferenced topos in ...
2
votes
1answer
71 views

Converting mxd to earlier version using ArcPy?

I am running arcmap 10.2.2 but need to open an mxd saved using 10.3. I do not have access to 10.3. I have an arcpy tool which will do the conversion but it is not working from within 10.2.2. Does ...
3
votes
1answer
71 views

Using ArcPy to export individual mxds from data driven pages?

I'm trying to generate individual mxds for each page in my data driven pages (which I have set up already). I have 38 pages in total, so I would need to generate 38 mxds. The pages are named according ...
0
votes
0answers
41 views

Remove layers in sub folders using python- path orientation

Expanding on my previous question Remove layers using python- path orientation, i try to remove layers from mxd's (in ArcMap 10.3, Python 2.7.8), that don't appear in the layout view. The layers ...
5
votes
2answers
72 views

Changing grid interval using ArcPy?

I work with ArcGIS 10.3 (Python 2.7.8) and I need to change the grid interval in 70 MXD's. I tried to find Python code that can do it. Currently, the interval in each MXD is 200 meters and I need to ...
0
votes
1answer
112 views

Removing grid and graticule layer using ArcPy?

I work on arcview 10.3. How can i remove grid and graticule by using arcpy? i have this code: import arcpy,os,sys,string import arcpy.mapping from arcpy import env env.workspace = ...
0
votes
1answer
31 views

Remove layers using python- path orientation

Expanding on my previous question Code error - remove layer using python, i try to remove layers from mxd's (in ArcMap 10.3, python 2.7.8), that don't appear in the data frame with this code: import ...
3
votes
0answers
18 views

Listing Joined tables in MXD using Python? [duplicate]

I've a question about arcpy List* modules. I have a quite large amount of data on ArcSDE Server. Earlier I made a list of the feature classes, and tables in the mxd-s placed there using da.Walk ...
2
votes
2answers
2k views

Collapsing layers in ArcMap Table of Contents using ArcObjects?

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 other. Some of the layers might be grouped, and ...
2
votes
2answers
56 views

Search MXDs with specific dataSource layer using Python

I work with ArcGIS 10.3 and I try to search a specific layer (with dataSource named "D:\desktop\Project\layers\1.jpg" ) in hundred of mxd's that spread in folder "D:\PROJECTS" and it divided to ...
2
votes
1answer
476 views

Listing data sources in ArcGIS map (*.mxd) without opening it?

Is there any routine I can use to read the data sources out of mxd´s without waiting 30 seconds to open each one? I need to create lists of all data sources as we are migrating data and altering our ...
0
votes
2answers
229 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 ...
3
votes
1answer
57 views

Enabling preview pane of Windows Explorer for mxd files?

The preview pane in Windows explorer is an efficient way to have sneakpeak at files without having to open them. It works great for a number of file extensions; images, office documents, pdf, dwg ...
4
votes
2answers
366 views

ArcMap MXD into exe file?

Is there any way to make an ArcMap mxd doc into a simple exe file so that one who does not have ArcGIS can view my work?
4
votes
1answer
70 views

Importing MXD to ArcGIS Pro programmatically?

I have a problem with importing an MXD file to ArcGIS Pro programatically. I try to do this by using the following arcpy.mp code: import arcpy aprx = arcpy.mp.ArcGISProject(r"C:\test\blank.aprx") ...
3
votes
2answers
3k views

error on mxd.save/saveACopy

I'm trying to use arcpy to save an .mxd and am having an issue. It doesn't matter if I use mxd.save or mxd.saveACopy I get the same error. I know it doesn't look like I am doing anything w/ it here, ...
0
votes
1answer
42 views

Adding file geodatabases as group layers?

I have a couple hundred file geodatabases (GDBs) each containing several feature classes. Is there a way for me to move the GDBs into an mxd such that each GDB is imported as a group layer ...
4
votes
2answers
1k views

Unable to cast COM object (IMapServer --> IMapServerObjects)

I have just deployed an AGS-based application to our web server. This app worked great in development, but after deployment to the server I got the following error: Unable to cast COM object of type ...
0
votes
1answer
27 views

Finding & correcting missing layer in MXD using ArcPy? [duplicate]

Am struggling with ArcPy. Can someone help with a script to identify missing layers (red arrow in TOC) and then to search for the correct file locations & then update the mxd.
0
votes
2answers
57 views

ArcMap Error I can't seem to recover my MXD file from

Has anyone come across this error when opening up a MXD file? Opening the selected ArcMap document failed. ArcMap had frozen on me right before this, even though no processes were in the ...
2
votes
1answer
86 views

Using layer name with accent on letter in ArcPy?

I have a lot of MXDs (more than 200) and all of them use a polygon shapefile "study_area_v00.shp". In the data frame, its name is just "Study Area". Every time we change the boundary of the polygon, ...
0
votes
3answers
844 views

Python Error while Publishing mxd ArcGIS 10.1

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 ...
26
votes
2answers
23k views

Converting ArcGIS (*.mxd) file to QGIS (*.qgs) file?

I recently tried to use QGIS and I wondered if you can convert a draft ArcGIS map (*.mxd file) into a QGIS project (*.qgs file). This would avoid thematize the entire project.
0
votes
0answers
102 views

Loading map (*.mxd) from ArcGIS for Desktop into QGIS? [duplicate]

I created a map based on a DEM in ArcGIS (with Spatial Analyst). The office I worked together with, now wants me to add some extra layers into my map for further use. The thing is, my student licence ...
3
votes
1answer
51 views

Programmatically create three mxd's [closed]

Quite often I have to create 3 different exhibits for the same project and it can get quite tedious, I was wondering if there was a way using python, modelbuilder, etc. to do this programmatically. ...
3
votes
2answers
3k views

How to export a mxd to a image with transparent background

I cannot get ArcMap 10.0 or 10.1 to "Export Map" to a png or gif with a transparent background -- no matter what I set the background and transparent colors to. Thus, I created the following script, ...
1
vote
1answer
54 views

Map book based on field attributes

I have a polygon shapefile with 800 records. What I want to do is to create an MXD document and a map in jpg for every polygon record from the shp. Is this posible to be done with data driven pages ...
2
votes
0answers
61 views

Open an existing document (MXD) inside ArcMap

I try to open a specific MXD inside a running ArcMap-Application, but I always get "System.UnauthorizedAccessException" and ArcMap crashes. I have an Add-In-toolbar with a button, which opens a form ...
0
votes
0answers
20 views

Importing a directory as a heirarchy of Group Layers

So I have a directory of shapefiles used to store some spatial data, and I'd like to find a way to export this directory to an mxd such that every folder is replaced as a group layer, but preserving ...
3
votes
1answer
23 views

mass update connetion properties in msd

I would like to update the connection property in all .msd in a folder, that already have a certain connection property. The manual process is to right click on the .msd, select "select all", ...
2
votes
2answers
293 views

Run C# form when ArcMap mxd is opened

I have created a form in C# which collects data such as name, date, workspace and several other fields from the user and stores this data in a temporary .txt file to be used later by other functions. ...
1
vote
1answer
37 views

Is there a way to create an mxd from the command line?

Is there a way to run ArcMap in a batch script to create a basic mxd containing specified layers? Something like: "Path to ArcMap exe" -create "Path to new mxd" -include "layers to add"
2
votes
1answer
135 views

Map Package or Relative Paths for ArcMap MXD export

Is there a way to use Map Packaging so that multiple mxds draw data from the same geodatabase when unpacked? We've broken our project area into 14 divisions. Each division has it's own geodatabase ...
3
votes
1answer
92 views

Search Table of Contents in MXD

This is probably a very straightforward question, but I can't see if this is at all possible. I often work with MXDs that have a large number of group layers, and would like to find a specific layer ...
1
vote
1answer
370 views

Unexpected closing of mxdperfstat tool?

I'm trying to test an mxd with mxdperfstat. I want to test several scales, but as soon as I provide a scale over 500, the program simply quits. No Error warning. It just stops working. If I provide ...
0
votes
1answer
33 views

Can you display mxd files on a app for iPads?

I would like to know if there is any apps that can displaying ArcGIS data? I have multiple .mxd's that i would like to display on a portable app.
1
vote
1answer
63 views

How to create MXD in folders programmatically,

I have an MXD as a template and about 650 folders. Each folder corresponds to a species. What I want to do is to make an MXD (same as the template) in every folder of each species. How to do ...
0
votes
0answers
32 views

Bing Authorization pop up still appears after using script to remove Microsoft Virtual Earth layers [duplicate]

My organisation does not have a Bing key, so Bing and Microsoft Virtual Earth layers don't work and a Bing authorization pop up happens whenever I open a MXD containing them. This pop up interrupts ...
0
votes
1answer
143 views

Arcpy script to turn off all layers in a MXD

I tried this standalone script to turn off all layers in the MXD: print "This script turns off the following layers:" try: arcpy except NameError: import arcpy mxd = ...