Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mxd]

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

0
votes
1answer
33 views

ArcMap MXD drops layers

I have a user who is using ArcMap 10.5.1 and several times his MXD has lost layers. This has occurred in two separate documents. He will work on a map, save the map, and close out. When he opens it ...
0
votes
0answers
26 views

ArcPy saveACopy() Method removes toolbar customizations saved in .mxd?

I`m trying to create a bunch of .mxds from a custom template, that get named and populated with data differently according to their location. I need the exact positioning and look of my customized ...
-2
votes
1answer
53 views

Who Owns MXDs? Client or GIS Specialist [closed]

I work for an small consulting firm, and we have been collecting and storing spatial data for a client. We have also created many reports and map products, via mxd files. We have a contract that ...
0
votes
0answers
26 views

Invalid MXD while trying to convert MXD to PDF using ArcPy?

I am trying to convert an MXD using a script from this link https://www.arcgis.com/home/item.html?id=4ddd1323ae0d4ebe8f8250992faab0f4 When I run the script I get the following error: Invalid MXD ...
0
votes
1answer
29 views

Trying to use layer saved as .lyr file with arcpy.mapping.Layer function results in error?

I am fairly new to the ArcGIS development world. I am attempting to write a script that will have an end result of selecting features by proximity to a selected portion of a different feature. So far, ...
0
votes
1answer
19 views

List data sources from multiple .mxds contained in one folder using Arcpy

I have a folder containing multiple .mxd files. I wish to list all of the layer names and data sources for each .mxd from the folder. I am using the following code which lists the above for one .mxd ...
2
votes
1answer
52 views

Unable to open mxd file on my computer - can be opened on other computers

Using ArcGIS Arcmap 10.5.1. Several of the mxd files I have created and worked on are no longer accessible to me. If I attempt to open these files, the loading screen progresses through "...
0
votes
1answer
35 views

Listing only Polygon Feature Classes in IMxDocument Using ArcObjects?

I am using VS 2017 with ArcObjects trying to list all polygons in IMxDocument to be used as clip feature in my add-In. I have a WinForms application and the following code: IMxDocument document = (...
1
vote
1answer
42 views

Exporting geoprocessing results history from MXD?

I have an MXD with the results saved to it. I want to look at the parameters that were set for some of the tools externally, so I want to export the results. Can this be done?
1
vote
0answers
45 views

Efficiently Searching MXDs for Folder Connection

We are currently trying to restructure some of the companies GIS data. It is located on an internal network drive (no SDEs). For each year, there are 1000+ MXDs with map layouts that still need to be ...
1
vote
2answers
48 views

In ARCGIS 10.5 mxd I need to put definition query for one layer as Current Year in Year fields , What i need to set the query

I have a feature class and related info in another table, the table having fields as Year, Year having values like - 2016,2017,2018,2019... Presently I Put the definition query for table Year = 2018 ...
1
vote
0answers
31 views

When exporting MXD to PDF, map layout moves to left?

When I export an MXD to PDF, the layout has moved to the left. Exporting to JPEG doesn't cause this problem. If, for example, the map in layout view is of quad 2 and quad 3, the pdf will be of quad 1 ...
0
votes
1answer
24 views

Adjusting multiple text elements in multiple mxd files?

I am trying to make changes to titles on multiple mxds instead of having to open 1 by 1 but it is only making changes to 1 mxd file, I have even tried to make duplicate copies of the mxd to test but ...
1
vote
1answer
42 views

Printing name of each layer in mxd using ArcPy?

My ArcMap verison is 10.2. My goal is to print the name of each layer in a mxd using Arcpy. My script is below. There is no error, but it prints the first layer multiple times instead of all the ...
1
vote
2answers
35 views

Altering text elements in multiple mxds?

I am trying to make changes to titles on multiple mxds instead of having to open 1 by 1 but keep getting an error. import arcpy.mapping as mapping, os for root, dirs, files in os.walk(r"F:\Final ...
0
votes
1answer
117 views

Iterating folder of shapefiles using ArcPy and exporting mxd to PDF

I'm new to Python and just created a hard coded script for the process I want, and it works. Right now it calls on the one of three shapefile I have in this map document. I want it to do the same ...
2
votes
1answer
74 views

Saving MXDs to older version of ArcMap automatically?

I work at a company that has three computers running ArcMap, accessing the same files and databases. Two of them run version 10.3, but we just got a new computer with version 10.6. Saving a document ...
3
votes
0answers
35 views

Creating MXD From Standalone ArcPy Snippet? [duplicate]

Is it possible to create some MXD from a list using Arcpy stand alone snippet? For example if I have a list like counties = ['Benton', 'Caroll','Polk','Scot'] can I run a code like import arcpy ...
0
votes
1answer
40 views

Find and replace image path

I have multiple mxd's with many company logos as jpg's. We've moved the location of the logos from the F:\ drive to the C:\ drive. I have a script that is supposed to change the path, but not sure ...
0
votes
0answers
39 views

MXD Layer Management When Publishing Services with ArcGIS

Currently have an MXD with 130 layers in the table of contents. All of these layers need to exist in the service when it gets published each time an update is performed. I'm in the understanding that ...
1
vote
0answers
130 views

Uploading mxd to ArcGIS Online with Python?

I need to create a Python script to upload an MXD to AGOL. I have created an script in arcpy to create a service definition file (*.sd) from the mxd. I have not been able to upload the sd to AGOL ...
1
vote
0answers
53 views

Exporting several maps with excel sheet using Arcpy

I try to export 20 maps with this python code in ArcGIS 10.3.1 for Desktop. Each map has excel sheet (not attribute table) in the layout view. The excel sheet file located in G:\Users\test\Downloads ...
-1
votes
2answers
186 views

Listing layers from .mxd file using ArcPy for ArcGIS Pro?

I am looking for a way to access a .mxd file's layer names and data sources. In ArcGIS Desktop, I could do: def print_layer_info(mxd_path): print(mxd_path + ":") mxd = arcpy.mapping....
0
votes
1answer
34 views

Embedding ArcMap map (*.mxd) in blog?

I am learning ArcGIS so there is a lot I still need to learn. I created a map in ArcMap and want to insert this map on my blog. Basically, I want to embed it. But all I can find is how to embed a map ...
2
votes
0answers
66 views

Converting symbols from ArcGIS Desktop to QGIS? [duplicate]

How do I export map information display styles from ArcGIS Desktop to QGIS? I tried exporting MXD to QGS (using mxd2qgs) - but the styles were not saved;Also, when I try to export styles from arcgis ...
1
vote
2answers
67 views

Adding Layers file to MXD using ArcPy- Code Error

In this code i try to add layer files- only if the first character in the name file, is a numbers to a MXD file, but an error happened: import os,sys,fnmatch,shutil,arcpy rootPath = r"G:\desktop\...
1
vote
0answers
36 views

Debugging mxd crawler error? [closed]

I found some conversation about listing the source paths for multiple mxd files and used the script provided at Crawling directory and listing all datasources using ArcPy?. It worked great on one ...
1
vote
2answers
71 views

ArcPy/Python method to ascertain VBA requirements in mxd

I need to be able to look at an MXD and ascertain if it has any VBA code embedded within it. It's ArcGIS 10.2, and the VBA extension tool is installed on all machines on the estate, but not all mxd ...
4
votes
1answer
215 views

Handling German umlaut while converting ArcGIS file (*.mxd) to QGIS file (*.qgs)

The name of the sole layer in the draft ArcGIS map myfile.mxd is Mächtigkeit which contains the German umlaut ä. I face an error message when using the script mxd2qgs.py (downloaded from https://...
0
votes
1answer
336 views

Connecting to File Geodatabases from ArcGIS Pro?

I have File Geodatabases that I created in ArcCatalog and ArcMap 10.5. I am trying to open maps in ArcGIS Pro from these File Geodatabases, but when using the "import Map" tool only folders show up, ...
6
votes
3answers
3k views

Will ArcGIS 10.6 mxd open in 10.5?

Working in an enterprise system. We need to determine if everyone needs to update to 10.6 at the same time for mxd cross-compatibility or can we update as needed.
2
votes
1answer
72 views

Access MXD from geoprocessing service

I have a small geoprocessing service that reads data-driven pages from an MXD, then exports a PDF. mxd = arcpy.mapping.MapDocument(mxd_path) mxd.dataDrivenPages.exportToPDF(r"\\test_report.pdf", "...
5
votes
1answer
119 views

List all MXDs that a feature class is in using arcpy

I know it is possible to list the paths of feature classes that are in an MXD using arcpy. But is it possible to do the reverse -- to list all the MXDs that a feature class is in? I am trying to ...
1
vote
0answers
35 views

Generate near tables from one layer to all in mxd

I am looking to create a script where user can choose a layer, then find all the layers within a set distance of it. I have set up a script to iterate through the mxd but I keep getting an error for ...
4
votes
1answer
184 views

Using two different reference scales in one MXD?

I'm putting two MXD's together. They don't have the same reference scale, so I was wondering if it is possible to have to different reference scale in one MXD? I'm working with ArcMap 10.5.
2
votes
0answers
34 views

Arcpy: MXD automatically removing layer whose data source was overwritten

I have a large script that does many things, but at the end it creates a buffer whose output is an existing feature class that is overwritten. That feature class is the data source for a layer that ...
1
vote
0answers
52 views

Label a feature based on Intersection with another feature class

In Arcmap, I have a feature class that I want to label but only where there is NO intersection with another feature class in my MXD. I know one strategy would be to populate a field based on a spatial ...
1
vote
0answers
63 views

Using excel info to create thematic map

So, I have an excel spreadsheet with information regarding people within a certain zip code. I basically need to make a map that shows the amount of people within each zip code either using dots or ...
1
vote
2answers
53 views

Why is the mxd property “Pathnames” disabled?

I have an .mxd that is using absolute pathnames. I want to change this property to use relative pathnames but the option is disabled, grayed out, when I go to the .mxd properties. It is actually ...
2
votes
3answers
441 views

Moving MXD to different folder without breaking links using ArcPy? [duplicate]

I was wondering what was the equivalent of "Save As" in ArcPy, which works perfectly fine in ArcMap. As the MXDs are currently set up with relative path moving MXD would break the links, however if ...
4
votes
0answers
110 views

Check for mxd write access with python addin

I'm looking for a way to check for write access to an mxd upon the initiation of a python addin tool. My tool should only be enabled if the user has write access to the mxd. I thought there was a way ...
1
vote
1answer
38 views

Create many Layers and data views with arcpy

This code I've created works for 1 (one) active layer and for 1 (one) field. I need to implement this code for many layers and fields in a open .mxd file. I have 11 fields (years 2003 to 2015). I ...
0
votes
2answers
42 views

Is it possible to show a map information, at the personal tool window?

I'm creating a tool to change some 'Map Document Properties' (for example Title, Description, Author), with arcpy (it can also be model builder, or both), to execute from a personal toolbox. But I ...
0
votes
1answer
170 views

Identifying ArcMap document versions with PythonWin?

ArcPy method to determine ArcMap document version I want to be able to identify ArcMap documents by the folder using PythonWin. When using Ryan's script (link above) I ran into some kind of problem....
2
votes
2answers
329 views

Python script to Export multiple MXDs to JPG

I have a project where I have many MXDs in one folder, and would like to export each one to JPGs in another folder. I've been stumped with a particular error message I'm running in to: Runtime ...
1
vote
0answers
237 views

Creating .sd file from .mxd in Python?

How would I save a .sd (service definition) file from an MXD purely with Python? I can create an .sd by stepping through the process and saving as a service definition. However, I'm looking to fully ...
0
votes
1answer
331 views

Opening .mxd files in Python not via ArcPy?

I am an old user of Python, but relatively new to GIS. I have a .mxd file and would like to read it into Python. Is arcpy the only way to do so? I tried with pyshp but it does not accept this file ...
1
vote
1answer
84 views

MXD “CURRENT” and Absolute path different behavior

I am using the following code (ArcGIS 10.3.1) to produce a batch of PDFs: mxd = 'CURRENT' cid = 2 rf = ur'D:\Δοκιμές\Tester' gdb = rf+'\\Ant.gdb' arcpy.env.workspace = gdb mxd = arcpy.mapping....
2
votes
1answer
260 views

Replace Feature Class with Another Feature Class inside an .mxd

I am trying to create a script that makes a copy of the same feature class within the same file GDB by using the "copyfeatures" syntax which works fine. I am then trying to iterate through a list of ....
-1
votes
1answer
151 views

Arcpy error when attempting to reference 'CURRENT' mxd with script tool within ModelBuilder

I have an ArcMap 10.5 ModelBuilder model that contains within it a script tool referencing the 'CURRENT' mxd. Both the script tool and the ModelBuilder tool are set to run in the foreground. The ...