Changing a Map Document's Description via python - Need Help

563
2
04-04-2012 06:26 AM
MarkFox1
New Contributor
So this should be a straight forward and simple code, but it's not working for me:

import arcpy

mxd = arcpy.mapping.MapDocument("G:/Projects/Phase II Project Location.mxd")
mxd.description = "Phase II"


When I run this script outside of ArcMap, then open the map document and check the Map Document Properties the map document's description does not get changed.

Am I missing something? I assumed this would be possible, yes?

Thanks for any help!

--Mark
Tags (2)
0 Kudos
2 Replies
MathewCoyle
Frequent Contributor
You'll need this somewhere.
mxd.save()
0 Kudos
MarkFox1
New Contributor
I knew it was something simple.

Thanks!
Mark
0 Kudos