Select to view content in your preferred language

Snap Error Using Arcpy

579
3
Jump to solution
08-30-2023 12:04 PM
tzz_12
by
New Contributor III

Hi Everyone, 

I am not sure why I am getting this error message," ERROR 000800: The value is not a member of End | Vertex | Edge" when I try to use the snap tool using arcpy. Here is my simplified script below that I tested in python command window, which gave me the same error as my script: 

snapEnv = ['WBDHU12',"EDGE",'5 Meters']
arcpy.edit.Snap('FeatureClassName',snapEnv)

Thanks for your help!

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Frequent Contributor

Hmmm I found the help a bit confusing, but perhaps it just needs to be wrapped in another set of brackets.

 

snapEnv = [['WBDHU12',"EDGE",'5 Meters']]
arcpy.edit.Snap('FeatureClassName',snapEnv)

View solution in original post

3 Replies
DavidPike
MVP Frequent Contributor

Hmmm I found the help a bit confusing, but perhaps it just needs to be wrapped in another set of brackets.

 

snapEnv = [['WBDHU12',"EDGE",'5 Meters']]
arcpy.edit.Snap('FeatureClassName',snapEnv)
tzz_12
by
New Contributor III

Thanks David! It works now. 

 

RhettZufelt
MVP Notable Contributor

If you use the GP tool and copy the python snippet, this is what you get, and is working for me.

Though, not really what the documentation says.

 

snapEnv = "WBDHU12 EDGE '5 Meters'"

 

R_

Also, code formatting.

0 Kudos