[GIS] Incorporating Python script into ModelBuilder

arcpymodelbuilderpython-script-tool

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

Best Answer

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.

Related Question