Update Credits/Metadata in MXDs

09-17-2020 01:32 PM
Occasional Contributor

Our agency has recently changed names. 

Does anyone have some sort of automated method to change the Credits in MXDs?  I want to change the name in the Credit Field of the MXDs Map Document Properties and also the Credits Field in the Layer Properties for all the Layers in each MXD.

The MXDs I want to change are published as Map Services and this Credit information is carried over to the service.

0 Kudos
1 Reply
New Contributor II


If you haven't solved your problem, you could try python script like this.

import arcpy

mxd = arcpy.mapping.MapDocument("# your mxd file path #")
mxd.credits = "# new mxd document credit #"
for lyr in arcpy.mapping.ListLayers(mxd):
lyr.credits = "# new layer credit #"


0 Kudos