Use arcpy.mapping to list broken data layers?

المشرف العام

Administrator
طاقم الإدارة
I want to list all the broken links in all mxds in a server drive. But whenever I try I get an error come up. Can someone use a specific example, say the drive is D drive, how would I put it into ESRIs script here:

import arcpy, ospath = r"C:\Project"for fileName in os.listdir(path):fullPath = os.path.join(path, fileName)if os.path.isfile(fullPath): basename, extension = os.path.splitext(fullPath) if extension == ".mxd": mxd = arcpy.mapping.MapDocument(fullPath) print "MXD: " + fileName brknList = arcpy.mapping.ListBrokenDataSources(mxd) for brknItem in brknList: print "\t" + brknItem.namedel mxdAlso I'm not used to not having pythonwin, does anyone know where to d/l it? I googled it but it kept telling me to install it from the ArcMap cd (I'm just using a work computer).



أكثر...
 
أعلى