Run Script First in Model

169
1
Jump to solution
04-19-2018 08:12 AM
JohnMcConalogue
New Contributor III

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.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor

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.

View solution in original post

1 Reply
JakeSkinner
Esri Esteemed Contributor

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.

View solution in original post