Select to view content in your preferred language

I want to add an model builder to the python

1261
1
01-12-2017 05:39 AM
GIS_Solutions
Frequent Contributor

Hello everybody

I want to python code import to model builder, how can i do that?

I want to add this code to the model builder

python code 

>>> arcpy.DisconnectUser("Database Connections\\172.16.200.86_IPTAL_CBS-SA.sde", "ALL")

Im using arcmap 10.4.1

0 Kudos
1 Reply
FC_Basson
MVP Regular Contributor

Put the code in a Python script file (*.py) and create a script tool with the py file as source (What is a script tool?—Help | ArcGIS for Desktop ).  Then you can add the script tool to your model as an additional process.