Solved! Go to Solution.
Let me give you some generic advice rather than just provide an answer. The conversion of tool input to Python syntax is sometimes quite complicated, and many tools are quite different, depending on the parameters.
The easiest way to get a Python syntax to do what you want is to
- Run the tool interactively
- Go to the Geoprocessing > Results , right click the completed tool run, and pick "Copy Python Snippet"
- Paste in to your code and edit in your input variables into what was pasted.
After that, hopefully the tool reference / help will have examples for most exceedingly complex operations (example: Calculate Field Examples in the help).