# 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)
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.