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

learn more… | top users | synonyms

3
votes
1answer
282 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
1answer
20 views

How to create new service from existing service

I have an existing ArcGIS 10.0 Server, and have just setup an ArcGIS 10.4 Server. How do I go about moving a particular service from 1.0 to 10.4. I can locate the related mxd file as well as the SQL ...
4
votes
1answer
743 views

How do I remove username / password from an ArcGIS mxd?

When you create an mxd and use layers from a database connection where you are using "Database authentication" and clicked "Save username and password" and share the mxd with others, why are others ...
0
votes
1answer
47 views

Python-ArcObjects mxDocument Stand Alone

if I need to work with classes MxDocument with the MapDocument that I have selected to work , for example style gallery, How can I instantiate ? InitStandalone() pMapDoc = ...
0
votes
1answer
47 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 ...
-1
votes
3answers
413 views

Insert layer file to specific data frame

I have a folder that contain mxd's projects. Each mxd has 3 and more data frame. I want to insert layer file to a specific data frame with position in the TOC. I don't know how to do it. I'm trying ...
1
vote
1answer
264 views

Turning off all layers in MXD using ArcPy?

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 = ...
2
votes
1answer
58 views

Updating MXDs with arcpy

I am trying to loop through a bunch of mxds in a folder and make some changes, in this case in particular I am trying to replace a text string. This should change all instances of "9/26/2014" with the ...
3
votes
1answer
63 views

.MXD file shows as *.DOC file after upgrading machine with ArcGIS 10.3.1 for Desktop to Windows 10?

I created an .mxd file on a computer with an earlier version of Windows (I was at a college campus; not sure what version). Now, on a computer with Windows 10, the file appears as a Word .DOC and ...
3
votes
2answers
922 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 ...
4
votes
1answer
551 views

Improving performance of looping over MXDs using ArcPy?

I am attempting to find the fastest method for looping over multiple map documents while keeping memory resources down. I'm running this script outside of Arcmap 10. I have 5 map documents which are ...
2
votes
3answers
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 ...
21
votes
3answers
2k views

Running Python Script when opening MXD?

Can anyone tell me how to accomplish this? I want a Python script to run on opening the MXD which would pull an excel worksheet into a GDB and refresh the map. I only want this to happen in this ...
1
vote
1answer
983 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
1answer
414 views

Cause of ERROR 000732: Input Layer: Dataset plan does not exist or is not supported?

I have several mxds (located in C:\Project ) that have 250 layers each. All the layers as the same name- "plan" and they all in group layers like that (added picture for example): I try to change ...
1
vote
1answer
38 views

ArcMap document “Accessed” timestamp incorect display in Windows Explorer

I created an ArcMap document on February 22, 2016. The timestamp, as seen in Windows Explorer, is 2/22/2016 8:58 AM. I have updated and saved that document many times since, but the timestamp doesn’t ...
1
vote
0answers
74 views

How to automatically run python code at the time when a mxd is saved?

I am trying to find a way to execute a few lines of (preferably python-)code whenever I save a specific mxd (my template.mxd) I'm working with arcgis desktop 10.3.1 (advanced, all extentions) What I ...
1
vote
1answer
42 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
246 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
54 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
274 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 ...
1
vote
2answers
72 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") ...
1
vote
0answers
269 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
167 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
267 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
235 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
53 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
137 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
91 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
46 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 ...
6
votes
2answers
136 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
136 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 = ...
3
votes
0answers
19 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
71 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 ...
0
votes
2answers
273 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
85 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
397 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
100 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
4k 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
68 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
30 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
110 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
90 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, ...
1
vote
3answers
997 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 ...
27
votes
2answers
26k 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
56 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
4k 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, ...