I want to accept feature set as input and convert it into feature layer or feature class so that I can use the input in select by location in the python script, as the select by location don't accept feature set as input.
For the graphicFeatureSet input I am drawing a polygon and for input_featureSet I am accepting to select featureSet within the drawn graphic layer. PS: I don't want to use the input type to feature class/layer it should be a feature set.
graphicFeatureSet = arcpy.GetParameterAsText(0)
input_featureSet = arcpy.GetParameterAsText(1)
arcpy.MakeFeatureLayer_management(graphicFeatureSet, "lyr")
arcpy.MakeFeatureLayer_management(input_featureSet, "input_lyr")
arcpy.SelectLayerByLocation("input_lyr","WITHIN", "lyr")