Converting feature set into feature class or layer

Discussion created by rbhosle on Mar 12, 2012
Latest reply on Mar 13, 2012 by mdenil
Hi All,

I am making a script tool in which I want to convert a parameter whose data type is feature set, to a feature class. I used these three lines in the code but I am getting an error saying that the object was not created.

input = sys.argv[1] # Input from the script tool
obj = arcpy.CreateObject(featureset, input) # Creating a feature set object
obj.save("C:\Users\rbhosle\Desktop\Project_540\Interagency_Compliance\output.shp") #saving the feature set in a shapefile format

Could somebody tell me where I am going wrong?