I've written a script that will create a list of all the feature classes in a geodatabase then have it run an analyze on each, writing out the result to a log file so I know what's been done. Problem I am having is I would like to not have analyze work on sde views, as it causes the script to fail. The views always have VW within the name e.g. WA_Her_Svy_vw_Test so they can be isolated from the rest. Main part of the code below.Any help would be much appreciated.Thanks in advance, Mike. features = arcpy.ListFeatureClasses()
for fc in features:
arcpy.Analyze_management(fc, "BUSINESS")
now = datetime.datetime.now()
analyzeLog.write(fc + " Analyzed at: " + now.strftime("%H:%M:%S") + '\n')