# Set you parameters (e.g. change to use tool inputs) gdbInputs = r"c:/temp/Inputs.gdb" gdbRoutes = r"c:/temp/Routes.gdb" # Create inputs list arcpy.env.workspace = gdbInputs inputList = [] fcList1 = arcpy.ListFeatureClasses() for fc in fcList1: inputList.append("{0}/{1}".format(gdbInputs,fc)); # Switch workspace (if required) arcpy.env.workspace = gdbRoutes for inputFC in inputList: # find your second feature class based on the last 6 digits targetFC = "{0}/Route{1}".format(gdbRoutes,inputFC[-6:]) # run your other processing with inputFC and targetFC print "Input FC: {0}".format(inputFC) print "Target FC: {0}".format(targetFC)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.