I'm new to Geoprocessing, but would like to determine if I have a model created in ArcGIS Desktop Model Builder, can I convert that model to a Python Script for publishing to ArcGIS Server?
I would like to convert it to Python because I want to add a couple of things that don't seem to be possible in Model Builder, such as write some output to a CSV file or even a text file. The Model Builder only seems to support GeoDatabases for output. Is there a way to output data to a CSV file once published to ArcGIS Server?
You can export your model to a python script by clicking on the Model menu within ModelBuilder > Export > To Python Script. Once the script is export and you add your additional code, you can add it back to the toolbox by right-clicking on the toolbox > Add > Script. Next, run the script by double-clicking on it. Once it completes successfully, open up the Results window (Geoprocessing menu > Results). Under Current Session, right-click on the completed script > Share As > Geoprocessing Service.
Jake, Thanks for the information on converting to python and publishing to ArcGIS Server.
Once I have the model in python, is it possible to add some code to the python script that will write some data out to a CSV file? Would it then be possible to follow your instructions on publishing to ArcGIS Server, and have this run as a Geoprocessing Service?