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'
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.