I am trying to Clip several in_features with several clip_features and name the output using the name of the clip features.
Till now i made it with a loop for many in_features but only one clip_feature. I used a for loop. But now i have no idea, how to that with several clip_features...
That's my code:
import arcpy import os arcpy.env.workspace = "path of in_features" out_clipped_Objects = "path of output" clip_fc = "path of clip_features" fcs = arcpy.ListFeatureClasses() for fc in fcs: arcpy.Clip_analysis(fc, clip_fc, os.path.join(out_clipped_Objects, fc)+ "name of clip_feature")
Does somebody know how to alter the code, to do the clip_analysis with more then one clip_feature?