AnsweredAssumed Answered

Using the results of geoprocess in another geoprocess

Question asked by jbridwell_Dewberry on Sep 5, 2018
Latest reply on Sep 5, 2018 by bixb0012
I have a list to hold the iterated results of running arcpy.MakeFeatureLayer and 'arcpy.CopyFeatures` geoprocesses.
selectList = []
fip = '13245'
for fc in featureclasses:    
= arcpy.MakeFeatureLayer_management(fc, "temp_lyr","FIPS_CODE = '{}'".format(fip))    
.env.workspace = "C:/Workspace/Sandbox/selects.gdb"    
= arcpy.CopyFeatures_management(select, "select_{}".format(fip))    

When I print(selectList) it gives me a weird list of results:

[<Result'C:\\Workspace\\Sandbox\\MapChangeProject\\selects.gdb\\select_13245'>, <Result 'C:\\Workspace\\Sandbox\\MapChangeProject\\selects.gdb\\select_06037'>]

What I want to do is merge all of these results together into one feature like this:

arcpy.Merge_management(selectList, "merge")

What am I doing wrong here and how do I get my results into a format that will work for my merge?