[GIS] Calling a custom tool from Python script

flexgeoprocessingtoolsweb-mapping

I have a script based gp tool published on web (via Flex App). The script goes to many different mxds to write a report.

Then I created another model to do some geoprocessing in a different toolbox and mxd. Now from the first published tool I want to combine one, so that the whole process will execute once called from Flex app.

Best Answer

To do this look at AddToolbox and/or ImportToolbox where it says:

While any of the core ArcGIS toolboxes are accessible by default in a script, your own custom or third-party toolboxes must be added using ImportToolbox to use them in a script.

I've pointed you at 10.1 documentation but have successfully published Geoprocessing Services at 10.0 from tools that call custom tools in my own toolboxes using the method described in the documentation.

Related Question