Not able to execute a simple script in Python window

580
3
04-10-2018 12:45 AM
VikasMenghwani
New Contributor

(As part of my learning python in ArcGIS)

I used the simple clipping tool and then I paste the "Python snippet" (below) in the python window within ArCMap. 

arcpy.Clip_analysis(in_features="RI_Sewers", clip_features="Providence", out_feature_class="C:/EsriTraining/PythEveryone10_1/PythonInArcGIS/RhodeIsland.gdb/Sewers", cluster_tolerance="")

But it doesn't execute when I press enter (once or twice). It just doesn't do anything, what am I missing? It shows no errors.

 

Would greatly appreciate any help!

Thanks,

0 Kudos
3 Replies
RebeccaStrauch__GISP
MVP Emeritus

Typically, I do not include the items like.     in_features=.        Just the value in the quotes.

also, to check the syntax they are asking for, do it onc3 with the tool to make sure it works.  Then you can grab the python snippet from the Results tab (turn on from the geo processing tool menu)

im also tagging the https://community.esri.com/community/developers/gis-developers/python?sr=search&searchId=4394990f-da...‌  space, since that may get you more views than the snippet page.

sorry for typos...using an iPad 

Lake_Worth_BeachAdmin
Occasional Contributor III

did you check your output path to see if the new clipped feature is there?

0 Kudos
VikasMenghwani
New Contributor

Apparently a restart solved the issue!! weird

0 Kudos