As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [mxd]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

Finding extent of MXD

I have a set of MXDs for layout view maps, and I would like to easily find out the four coordinates that define the extents (using the same units as the map projection). What is the best way to do ...
Jim Titus's user avatar
0 votes
0 answers
37 views

Problems with the Z-values / exporting MXD (ArcMap) to DXF (AutoCAD)

Circular arcs are polygonalized in the DXF output. Several support points are inserted into an arc, which are connected to each other with polylines. The Z-values ​​of the inserted support points are ...
C. J.'s user avatar
  • 1
0 votes
1 answer
77 views

ArcPy command to remove empty layers that are grouped

I have a script that works for MXD with ungrouped layers. How can I change this so it works if there are groups of layers? I have an MXD template with many layers & groups. The underlaying file ...
Eifa's user avatar
  • 1
0 votes
0 answers
24 views

Automating data-link repathing when changing folder structure for a project drive

People in our office been having a lot of "General Function Failure" errors and I have read that this can be a symptom of filename paths that are very long, which our network has, so we have ...
forestGIS's user avatar
  • 117
0 votes
1 answer
210 views

Extracting mpk file into MXD and its shapefiles and keep connection between them

I have many mpk files, which are open by ArcMap. I would like to have them as mxd files and a folder with the shapefiles that come with them, and when you open the MXD file the shapefiles should be ...
Alvaro Morales's user avatar
0 votes
1 answer
138 views

Opening MXD file saved in later version of ArcMap

I saved in ArcMap 10.7 an MXD file, and I can't open it in ArcMap 10.3. Is there a way to do it?
user201071's user avatar
0 votes
0 answers
71 views

RuntimeError: Object: CreateObject cannot open map document

I need to get a list of all the layers in all of the .mxd files located in a certain directory as these layers have been published to AGOL through the the agency of the mapping documents and I now ...
geoJshaun's user avatar
  • 1,505
2 votes
1 answer
628 views

Writing Python script to batch import .mxd to .aprx

I'm attempting to write a Python script that finds all of the .mxd files in my local directories, imports them into a blank .aprx, and then saves them as an .aprx file. I'm able to successfully locate ...
munk5's user avatar
  • 23
1 vote
1 answer
87 views

ArcPy mxd.save() not overwriting MXD

I am using an ArcPy code to find and replace the data source of layers in a series of MXDs using lyr.replaceDataSource as follows: import arcpy import os mxdfolder =r'C:\Folder' #folder in which mxd's ...
blxnyx's user avatar
  • 322
0 votes
1 answer
85 views

Refreshing linked word doc objects in MXD using ArcPy

I have multiple MXDs which have linked Word documents added using Insert Object. These Word documents change frequently and need to be updated in the maps. The only way I have found so far, from ...
George P.'s user avatar
1 vote
0 answers
97 views

Adding shapefile to existing MXD using ArcPy

I am trying to add a shapefile to an already created MXD project in ArcMap 10.3.1. I run the code but nothing happens. I leave it below: import arcpy from arcpy import mapping mxd = arcpy.mapping....
pmurbina87's user avatar
1 vote
1 answer
47 views

Searching multiple MXDs and identifying which have graphics elements using ArcPy

How would I go about identifying all the mxd files that have graphics? I reckon it's close to: import arcpy import os srcPath = "my_path" mxd_lst = [f for f in os.listdir(srcPath) if f....
CreekGeek's user avatar
  • 389
0 votes
0 answers
27 views

Does QGIS generate .mxd format files? [duplicate]

When developing urban planning documentation (f.e. a master plan of a territory) each scheme or plan must be collected in a file in .mxd format. Does QGIS software generate a .mxd file?
Ana's user avatar
  • 1
1 vote
1 answer
140 views

Using Python or ArcPy to extract usable shapefile data from several hundred MXD files

I have several hundred (potentially more) old MXD files which were made to show grass areas to be cut along city roads. The employee before me opted to do these one by one and rather than create ...
Chris Medyna's user avatar
2 votes
1 answer
56 views

Does saving multiple MXDs negatively affect ArcMap performance?

I'm using ArcMap 10.6. I have a "Master" MXD that has about 30 layers. My project is to make ~30 exhibit maps at a county scale for a legal issue. After I create the ~exhibit maps, the law ...
Irrigation_GIS's user avatar
2 votes
3 answers
6k views

Switching from layout view to data/map view in ArcGIS Pro

I am using ArcGIS Pro 2.7 I imported a map document created in ArcGIS Desktop into Pro. It opened up in Layout view, and I don't know how to switch to the Map view, which was easy to do in ArcMap by ...
kent 's user avatar
  • 101
-1 votes
1 answer
272 views

Add shapefile into ArcMap project using PyCharm and ArcGIS 10.8

I am using ArcGIS 10.8 and PyCharm. I need something very simple apparently, but I can't do it. I want to add an existing shapefile to my ArcMap project using Python from PyCharm. With my project open ...
Jota Q's user avatar
  • 75
0 votes
1 answer
182 views

IO error on bulk MXD publishing to ArcGIS Server using Python

I have a folder of MXDs and I want to publish all of them in batch to a single ArcGIS Server. I've had success using Python on a single MXD, but when I add a loop into the code so that I can do ...
Dave's user avatar
  • 543
0 votes
0 answers
78 views

View multiple mxd files in same tab of ArcGIS Pro

I have downloaded a bunch of map sheets which all fit together into one big map. I want to merge them all such that I can export any subsection of the combined map. They are provided as .mxd files and ...
bon's user avatar
  • 101
1 vote
1 answer
416 views

arcpy.importDocument of ArcGIS Pro not working on specific MXD and not throwing error

I have a script that imports every MXD in a folder to an empty ArcGIS Pro project, then use saveACopy to save to a new project file. The problem is: The script just stops working every several MXD. ...
Kevin's user avatar
  • 521
2 votes
1 answer
123 views

Create .lyr file from open .mxd layer without removing layer

I have a tool that is meant to clip and reproject every layer in an open .mxd, and then create a new feature class and .lyr file with original symbology from the result, not adding either to the .mxd. ...
Pdavis327's user avatar
  • 950
0 votes
0 answers
19 views

Downgrade from 10.5 to 10.3 mxd [duplicate]

I use save as methods as well as MXD Doctor but nothing happening. I have previously 10.5 version and I have saved my work in MXD. Now I have 10.3.2 version. How can I open .MXD files?
zia's user avatar
  • 1
2 votes
1 answer
2k views

Converting ArcMap layout to QGIS

How can I export the layout view elements of an ArcGIS 10.6 project for use in the QGIS 3.4.2 print layout? Apart from the shapefiles that accompany the project, I would like to be able to make the ...
Kimberly Clemons's user avatar
0 votes
1 answer
181 views

Dataset does not exist or is unsupported SaveLayerToFile

I am trying to save a layer from an MXD to a lyrx file in a geodatabase using ArcGIS Pro. aprx.importDocument(current_document_name) mlist = aprx.listMaps() infra_layers = mlist[0].listLayers() arcpy....
Steve Scott's user avatar
0 votes
1 answer
271 views

Error Opening MXD - The last successfully loaded component was: esriGeometry.ProjectedCoordinateSystem

Why are we getting this error when trying to open some MXD files? Myself and another coworker are getting this same error when opening several MXDs (see Error Message 1 below). We have all verified ...
GeographyNerd's user avatar
3 votes
1 answer
128 views

Can mxd files be under version control?

Is it recommended to have Esri ArcMap MXD files under version control e.g. stored on SVN or TFS?
mnavidad's user avatar
  • 157
-3 votes
1 answer
18k views

Import and Edit *.MXD in QGIS [duplicate]

Do you know of a way to enter a file directly from the MXD extension QGIS? Is this possible? How about MapPackage files? I do not have access to the ArcMap software. Best Regards.
GIS_Esri's user avatar
0 votes
1 answer
495 views

Batch exporting individual MXDs to individual PDF files using ArcGIS Desktop?

I need to pdf several mxds into their individual pdfs and am hoping there is a quicker way to accomplish that other than opening each file individually and exporting individually. Data Driven Pages is ...
AshleyC's user avatar
2 votes
1 answer
263 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 ...
Evan's user avatar
  • 883
-2 votes
1 answer
57 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 ...
user142236's user avatar
0 votes
1 answer
595 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, ...
The Querying Intern's user avatar
0 votes
1 answer
544 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 ...
FRMMO's user avatar
  • 83
2 votes
1 answer
2k 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 "...
M. George's user avatar
0 votes
1 answer
50 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 = (...
Hilal Al-Rajhi's user avatar
1 vote
2 answers
264 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?
HDunn's user avatar
  • 8,486
1 vote
0 answers
83 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 ...
dru87's user avatar
  • 1,467
1 vote
2 answers
119 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 ...
Venkata Ramarao's user avatar
1 vote
0 answers
49 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 ...
Annie's user avatar
  • 53
0 votes
1 answer
47 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 ...
R R's user avatar
  • 21
1 vote
1 answer
756 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 ...
Rachel's user avatar
  • 79
1 vote
2 answers
77 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 ...
R R's user avatar
  • 21
0 votes
1 answer
621 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 ...
Kelsey Ciarrocca's user avatar
3 votes
1 answer
723 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 ...
Annie's user avatar
  • 53
3 votes
0 answers
96 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 ...
Mona Coder's user avatar
1 vote
1 answer
866 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 ...
mmoon 's user avatar
  • 21
0 votes
0 answers
111 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 ...
Dave's user avatar
  • 543
1 vote
0 answers
295 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 ...
Mikel's user avatar
  • 41
1 vote
0 answers
134 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 ...
newGIS's user avatar
  • 4,004
1 vote
2 answers
4k 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....
sdMarth's user avatar
  • 141
0 votes
1 answer
60 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 ...
Ricks60's user avatar

1
2 3 4 5 6