I am trying to write a python script and am stuck on the first obstacle.
I want the user to select features in ArcMap and then use these selected features in a python script.
Is that at all possible and does someone have a code example?
The code that I have now uses all the features instead of just the selected ones. Please see code snippet below.
arcpy.MakeFeatureLayer_management(pipes,"pipeslyr")
arcpy.SetParameter(0,"pipeslyr")
pipesnew = os.path.join(ws,"pipesnew")
arcpy.CopyFeatures_management("pipeslyr", pipesnew)