Make Thumbnail - arcpy.mapping

Discussion created by newell.kate on Mar 22, 2012
Latest reply on Apr 18, 2012 by evangelos911
Wondering if anyone can tell me why my thumbnails are not actually being created.  I have the following script (see below text or attached jpg) and it runs without any error, and the save date on my mxd's is it appears as if the script is working perfectly....except that it actually doesn't create the thumbnails.  When I open the project and check the Map Document Properties, you can tell a thumbnail has never been created because the option to delete thumbnail is greyed out.  Also the thumbnails do not show in the splash screen upon ArcMap starting up.  So even though the model runs without error and appears to have worked, it never really updates the thumbnails!?!
import arcpy, os
path = r"N:\Users\ke\New_Templates"
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.lower() == ".mxd":
            mxd = arcpy.mapping.MapDocument(fullPath)
            print "creating thumbnail for " + fullPath
del mxd