I would like to transform a python script into model builder, but not as a single box, but as its separate functions and connections, how do I do that?
Solved! Go to Solution.
There's nothing that will do this automatically. You will have to build the model manually based on the geoprocessing tasks the script uses. If the script has some advanced logic, you may not be able to create a model capable of completely replicating the script. What is the need to have a model instead of a script?
There's nothing that will do this automatically. You will have to build the model manually based on the geoprocessing tasks the script uses. If the script has some advanced logic, you may not be able to create a model capable of completely replicating the script. What is the need to have a model instead of a script?
I need to transform the python scripts to another platform, but to understand what was done in this script, in the model builder for me it's easier. I didn't make the current script
As @BlakeTerhune says you cannot convert a script into a model. You do not say how your current script is run? Are you aware you can expose a script as a tool script so it looks like a single geoprocessing tool which you can drop into an existing model?
Current I use like script as a tool script so it looks like a single geoprocessing, but I would like to see as image below
Thakn´s
There is no way to turn that logic encapsulated by a script into its equivalent in model builder. Also consider this, python allows complex looping and logic structure as well an importing functionality from other modules, e.g. scipy, numpy, fiona etc... these are all modules/logic that model builder has no concept of.