import arcpy #Set workspace of your File Geodatabase arcpy.env.workspace = r'C:\gisworkspace\WORKSPACE\Forums\AppendDuplicate.gdb' #List all polyline feature classes featureClasses = arcpy.ListFeatureClasses("", "Polyline") #Iterate feature class list #Find the inputs in list (ending in '00') and append them to their target for fc in featureClasses: if fc[-2:] == '00': input = fc #Remove last two characters to find the target target = fc[:-2] arcpy.Append_management(input, target) #Uncomment the next line to delete the input feature class #arcpy.Delete_management(fc) print 'Complete'
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.