I have created a model which outputs shapefiles. I have a script which I have added to the model. The script deletes old files previously created. I want the script to run first in the model but as it isn't a variable i can't set it as a parameter to decide the order it runs in.
anyone know how I can run the script first before the rest of the model.
Solved! Go to Solution.
Hi John,
I would suggest adding a variable to your script. Then you can then set a precondition in modelbuilder. Or, you can remove the script from modelbuilder, export the model to a python script, and then combine this with your other script.
Hi John,
I would suggest adding a variable to your script. Then you can then set a precondition in modelbuilder. Or, you can remove the script from modelbuilder, export the model to a python script, and then combine this with your other script.