geoprocessing scripts probelm

318
2
Jump to solution
03-13-2022 08:31 PM
Chelsea_Trusdell
New Contributor
 
0 Kudos
1 Solution

Accepted Solutions
Luke_Pinner
MVP Regular Contributor

What have you attempted? We're not here to do your homework for you, but can help you with issues you come across when doing it.

The easiest way to accomplish this is to run your workflow manually, then right click each result in the history tab and select "Copy Python command" then paste the python into a script and modify as required.  Give it a go.  Hint, 1st tool should be Select  By Attributes or Make Feature Layer with a where clause.

View solution in original post

2 Replies
Luke_Pinner
MVP Regular Contributor

What have you attempted? We're not here to do your homework for you, but can help you with issues you come across when doing it.

The easiest way to accomplish this is to run your workflow manually, then right click each result in the history tab and select "Copy Python command" then paste the python into a script and modify as required.  Give it a go.  Hint, 1st tool should be Select  By Attributes or Make Feature Layer with a where clause.

MichaelVolz
Esteemed Contributor

You could also try creating a model and exporting that out to a python script as everything would be together.

0 Kudos