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
23 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 WinForm and the following code: IMxDocument document = (IMxDocument)...
1
vote
1answer
41 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
34 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
46 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
29 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
23 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
32 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
88 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
42 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
33 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
39 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
38 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
101 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
47 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
107 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
59 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
58 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
35 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
69 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
199 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
278 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, ...
4
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
66 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
104 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
164 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
49 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
60 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
48 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
388 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
96 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
41 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
145 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
292 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
216 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
278 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
74 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
240 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
144 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 ...
5
votes
1answer
1k views

Identifying ArcMap document version without ArcPy?

Is it possible to identify what version (10.0, 10.5 etc.) an ArcMap document (.mxd) has been saved in? I am aware of ArcPy method to determine ArcMap document version, but I am interested in a ...
1
vote
1answer
58 views

Publish an orthophoto without needing mxd file

I wonder if anyone has a tool or a method that can help me to Publish an orthophoto without the need to include it in mxd file.
1
vote
1answer
47 views

Data record for an MXD

Say that in a layout view of an MXD, I draw a simple rectangle. Does a record of this rectangle exist anywhere in the project data in a way that can be edited or duplicated? Reason: My team is ...
0
votes
1answer
41 views

Automate Sourcing Data from Multiple .GDB's to a Single “Template” MXD using ModelBuilder?

I have a single "template" MXD I'm using and repeatedly resourcing the layers to newly created features that always fall within the same 4 geodatabases. The new features all follow the same ...
2
votes
1answer
50 views

Point layer draws very slowly after using ArcPy to add to mxd?

I am using an ArcPy script to add a point feature class to an mxd. The map document will draw this layer very slowly, approximately 50 to 100 points per second. If I remove the layer and add it ...
3
votes
1answer
188 views

Arcpy.mapping Select by Location problem

I need to adjust a premade .mxd many times, so I'd like to speed it up with this script. Everything is working except the Select by Location part. The query reduce the Address layer to a single point ...
5
votes
1answer
162 views

Avoiding arcpy.mapping.ExportToPDF locking mxd with data driven pages?

I've written a script that makes use of a data driven pages mxd, but I'm having issues with locks. The script iterates through a series of feature classes and uses them as the base layer for the DDP. ...