Within ModelBuilder in ArcGIS, I am trying to add a script that will randomly assign "model types" (which is text) into the new field I have created in the attribute table. I checked to make sure the whole model ran without any problems before adding the script. The script has ran without any errors as well, but from the python window within ArcGIS.

Does anyone know the proper way to add this script to the model?

enter image description here

  • You should be able to integrate the Model Type python script into the model the same as any of the other geoprocessing tools...
    – mikeLdub
    Aug 8, 2018 at 16:43

1 Answer 1


Here is a link to the Esri guide on adding a python script to a model. Essentially you can just navigate to the python script tool in Catalog, then drag and drop it into the model. You will need to make some configuration selections first, though (it appears you're missing that step), so read that guide.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.