I am new to python.
the python code example for the Fill command starts with "create flow direction" - also when I export my python code from my model that has the flow tool - I do not get the same 'syntax' ( i believe is the word I am looking for) my python code from export looks completely different then the example provided.
my python export from model
# Process: Fill
arcpy.gp.Fill_sa(Dem_Patch, temp2, "")
I am getting an error when trying to create my python code and run it.
File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\geoprocessing\_base.py", line 498, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
of course figured out issue with the code -however the code in the examples in the training confused me a bit - the more I learn the python code, I am sure they will make sense. I am sorry I could not find where to delete a question..
Instead of exporting from a model, you'll get better python output by running the tool from the ArcToolbox window, then clicking the Geoprocessing menu and opening the Results window, right click the process you just ran and select "Copy As Python Snippet".
(Image from this GIS StackExchange answer)