import arcpy import glob import os # Provide folder path to loop through (first level only) folderPath = r"C:\TEMP\test" for filename in glob.glob(os.path.join(folderPath, "*.mxd")): print "Editing", filename mxd = arcpy.mapping.MapDocument(filename) if not mxd.description: mxd.description = "Default description" mxd.save() del mxd
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.