Using Intersect_analysis in script

Discussion created by smvmanhard on Feb 5, 2013
Latest reply on Feb 6, 2013 by smvmanhard
Hello everyone, looking for some guidance. I want to intersect three features but I want to intersect 2 first then do some other stuff to that output then intersect that output to the next feature. I am not really understanding what I am doing wrong with the code, it seems to not like me using the output feature created from the first intersect as an input feature for the next intersect.

import arcpy
from arcpy import env

# set the workspace to avoid having to type in the full path to the data every time
env.workspace = r"E:\Development\Novus.gdb"

inFeatures = ("Existing_LU", "soils")
intOut = "LUsoilsInt"
arcpy.Intersect_analysis (inFeatures, intOut)

inFeatures2 = ("LUsoilsInt", "Subbasins_Dek")
intOut2 = "Int_LU_Soils_basins"
arcpy.Intersect_analysis (inFeatures2, intOut2)