Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 115

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

1 vote

Using arcpy.mapping to make changes to an open mxd

The arcpy.mapping module was not designed to be used for the use case that you describe. A relevant post by Esri staff member Jeff Barrette at GeoNet says this better than I can: Arcpy.mapping wa …
PolyGeo's user avatar
  • 65.4k
2 votes
Accepted

Generate MXD layer info report

I don't think it is possible to do this at 10.0 but in the What's New at 10.1 PDF (which is available via resources.esri.com) two new properties on the Layer class of arcpy.mapping are described: ▪ m …
PolyGeo's user avatar
  • 65.4k
1 vote

Search MXDs for feature class

The arcpy.da.Walk function that was introduced at ArcGIS 10.1 SP1 will give you a headstart to building such a tool. Alternatively, there is an excellent commercial product available called Voyager t …
PolyGeo's user avatar
  • 65.4k
6 votes
Accepted

MXD size increasing when saving it?

"Map documents (.mxd files) are compound files. The information describing the map, layout, and any embedded objects saved in the map is organized into units called storages and streams. …
PolyGeo's user avatar
  • 65.4k
4 votes
Accepted

Connecting to File Geodatabases from ArcGIS Pro?

From your picture it appears that you have saved an MXD file into the same Windows folder that contains the files making up your file geodatabase. I think that is an unwise practice. … From your comment it appears that moving the MXD file out of the file geodatabase's folder has resolved this for you. …
PolyGeo's user avatar
  • 65.4k
-1 votes

Renaming open MXD using ArcPy?

As commented by @MichaelStimson: Unfortunately due to file access (the MXD is open) you cannot rename it by any method. … When you 'save a copy' ArcMap doesn't switch to the new MXD, you need to do that yourself; each instance of ArcMap can only have one MXD open so the old one is closed (locks removed) which can then …
PolyGeo's user avatar
  • 65.4k
3 votes
Accepted

Data record for an MXD

You can do this in ArcPy by cloning a graphic element that is a rectangle, and then changing its position and size properties. http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/graphice …
PolyGeo's user avatar
  • 65.4k
1 vote

Repairing a broken data source for a single layer in multiple map documents

I would try this: import arcpy mxd = arcpy.mapping.MapDocument("C:\Project\Project.mxd") #I'd like to create a list for lyr in arcpy.mapping.ListLayers(mxd): if lyr.dataSource == (r"C:\Project\ … not saving that MXD. …
PolyGeo's user avatar
  • 65.4k
2 votes

Programmatically create three mxd's

For an inexperienced Python user my recommendation would be to author three MXDs that will be your templates. These would have your layout set up any data frame(s), scale bar(s), legend(s), north arr …
PolyGeo's user avatar
  • 65.4k
1 vote

Finding & correcting missing layer in MXD using ArcPy?

Any script to do this will need to start by using ListBrokenDataSources which: Returns a Python list of Layer objects within a map document (.mxd) or layer (.lyr) file that have broken connections …
PolyGeo's user avatar
  • 65.4k
2 votes

Converting mxd to earlier version using ArcPy?

Note that documents from ArcGIS 10.1, 10.2, 10.3 and related releases, such as 10.3.1, are directly compatible with each other Consequently, I think you should use 10.2 to try and open the MXD
PolyGeo's user avatar
  • 65.4k
14 votes

Is there a way to copy the mxd file with all of the files in that in ArcGIS?

A map package contains a map document (.mxd) and the data referenced by the layers it contains, packaged into one convenient, portable file. …
PolyGeo's user avatar
  • 65.4k
1 vote

How to programatically replace ArcGIS Online image with new imagery in mxd's?

import arcpy mxd = arcpy.mapping.MapDocument("C:/temp/test.mxd") layers = arcpy.mapping.ListLayers(mxd, '*') for i in layers: print i.name print i.isServiceLayer print i.longName will return …
PolyGeo's user avatar
  • 65.4k
4 votes
Accepted

Editing/creating new Normal.mxt template in ArcGIS for Desktop?

As you have found you cannot create new *.mxt files at ArcGIS 10.1. To get a better understanding of how to save customisations in the Normal template at ArcGIS 10.1 perhaps start at the Fundamentals …
PolyGeo's user avatar
  • 65.4k
1 vote
Accepted

Change coordinate system in multiple MXDs ArcGIS 9.3 using Python

Although very easy to do at 10.0, I do not believe it is possible to use Python to update the Coordinate Systems of Data Frames in any straightforward manner at 9.3 and earlier. Only approaches I can …
PolyGeo's user avatar
  • 65.4k

15 30 50 per page