Select to view content in your preferred language

Converting a model builder to stand alone python

07-24-2021 07:24 AM
New Contributor III

Hi all,

I am learning python and I have a model. Now I want to convert it to a stand alone python script. I exported the model as a Python file but I don't know what elements need to be added or modified to make it standalone. Also I don't want to have some outputs (like dissolve feature class or raster to polygon) and just want to have the final feature class how I stop producing of these feature classes?


0 Kudos
1 Reply
MVP Esteemed Contributor

Perhaps it might be useful for you to provide the script that resulted from the model export.

Make sure you format it properly 

Code formatting ... the Community Version - Esri Community

so people can reference line numbers for changing.

... sort of retired...