Select to view content in your preferred language

SQL query in Modelbuilder?

3167
2
07-29-2016 03:59 PM
HectorBorro1
Deactivated User

Hi!

I'm trying to apply a definition query to a bunch of shapefiles  (100s) in the same directory.

Been trying but can't get the Iterator to connect to the tool Select Layer by Attribute where I'm able to execute the query.

This has been my approach so far:

Have any ideas or know if I'm on the right path at least?

Cheers!

0 Kudos
2 Replies
JayantaPoddar
MVP Esteemed Contributor

Try

1. Adding Make Feature Layer—Help | ArcGIS for Desktop​ . Connect the iterated shapefile to this tool, and connect the output layer to Select layer by attribute.

2. Also add Copy Features—Help | ArcGIS for Desktop​ to the end of the model if you want the selected features in separate shapefiles.



Think Location
HectorBorro1
Deactivated User

Will look into it, thanks!

0 Kudos