AnsweredAssumed Answered

Multiclip only selected features in two for loops?

Question asked by JB1234510 on Oct 15, 2014
Latest reply on Oct 15, 2014 by JB1234510

This script only clips on of the selected features? What's wrong?

import arcpy
import os

input = arcpy.GetParameterAsText(0)
clipfeature = arcpy.GetParameterAsText(1)
output = arcpy.GetParameterAsText(2)

arcpy.env.workspace = output

# fc = "R:\Karto\Bierer2014\FFH_Ausschreibung2014\FFH_Merge_Buffer1.shp"
field = "BFN_Nummer"

inputSp = input.split(";")

cursor = arcpy.SearchCursor(clipfeature)
for row in cursor:
    for i in inputSp:
        arcpy.Clip_analysis(i, clipfeature, i + "_" + row.getValue(field))