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')
I am wondering how to exclude a feature type. I know I can specify a feature type by setting feature_type parameter, but how can I exclude a feature type? I tried using != and it didn't work.
list = [] lstFCs = arcpy.ListFeatureClasses() for fc in lstFCs: list.append(fc) for n in list: if "vw" not in n: arcpy.Analyze_management(n, "BUSINESS") now = datetime.datetime.now() analyzeLog.write(n + " Analyzed at: " + now.strftime("%H:%M:%S") + '\n')
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.