AnsweredAssumed Answered

how to select from currentlly selected features using arcpy

Question asked by simbakapfumo@gmail.com on May 13, 2018
Latest reply on May 14, 2018 by bixb0012

When using arcmap, there is an option of selecting from currently selected features. I want to automate the process. is it possible to do it using arcpy.

i wrote some code below but its not really working as expected

arcpy.MakeFeatureLayer_management("SplitContours","cont_lyr")
arcpy.Buffer_analysis("River","Stream_buffer",200)
arcpy.SelectLayerByLocation_management("cont_lyr","INTERSECT",MaximumCentralPoints,"","NEW_SELECTION")
arcpy.SelectLayerByLocation_management("cont_lyr","INTERSECT","River","","NEW_SELECTION")
arcpy.FeatureClassToFeatureClass_conversion('cont_lyr',workspace,'channel')

Attachments

Outcomes