0

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 '18 at 16:43
2

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, privacy policy and cookie policy

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