[GIS] Exporting Selected By Attribute To Shapefile In ModelBuilder

arcgis-desktopmodelbuilder

we can do a selection by "select by Attribute" and using RtClick on layer --> Data-->Export Data-->Export Selected Features output the selected as .shp format file. Now I am trying to do this in ModelBuilder (Using the NEW_SELECTION type of selection) like :

enter image description here

But I couldn't figure it out what tool I should use to export ONLY the selected part in ModelBuilder.

Can you please let me know what should I use here?

Best Answer

As PolyGeo indicated in the comments, Select will do this in one step. Otherwise, use Copy Features to copy the selected features.

Copies features from the input feature class or layer to a new feature class. If the input is a layer which has a selection, only the selected features will be copied. If the input is a geodatabase feature class or shapefile, all features will be copied.

In this example, it is assumed you dragged the feature layer from the table of contents into your model--otherwise, you will need to incorporate the Make Feature Layer (Data Management) tool.

enter image description here