I am trying to teach myself Python scripting for ArcMap, however I'm stuck with possibly a very simple issue.
All the tutorials in my books start with "Open the file with ArcMap" without mentioning how to do this through the console.
But what I want is to build my scripts by having an implicit presence of file within the Python environment.
However, the best I found so far is:
which opens the ArcMap window and loads the file.
This is not bad, however:
- I'm getting A WINDOW when scripting outside ArcMAP
- I'm getting ANOTHER WINDOW when scripting inside ArcMAP
So to sum up - I am particularly interested in answering two questions:
Can I do the whole processing just from Python IDLE? Open the file, merge it with another files, do the geoprocessing, save/print results...?
If the answer to previous is TRUE, then how can one easily switch between loading the files to ArcMAP (when running the script in its console) and doing the whole job externally? I'd prefer to see what the script does at first (work inside ArcMAP's Py console) and when the script is done then move it out and run it on periodical basis within Python IDLE.