Convert feature class to shape file in model builder

575
2
06-03-2023 11:48 PM
ShreeHarshaKodi
New Contributor

How do I convert feature class to shape file in model builder? I tried using conversion tools but it was not working, in the normal Arcgis maps, I export it and in the output file location I choose the file type as (.shp) file, how do I do the same thing using model builder, since it is required as an input for the next steps

0 Kudos
2 Replies
EmanueleGreco_GNetwork
New Contributor II

Hi, ShreeHarshaKodi 

If you are using ArcPro 3.x
You can drag "Export Features" from the Geoprocessing Toolbox and set the output directory to a path which is outside of your default .gdb in the project. Then simply add ".shp" at the end of your file name and you should be able to export the feature class initially stored in a geodatabase into a shapefile stored in a folder directory. Please find an example below

EmanueleGreco_GNetwork_0-1685886683374.png

If you are still on ArcPro 2.9 then "Feature class to Feature" class should do the same as "Export Features"

 

curtvprice
MVP Esteemed Contributor

If the shapefile is temporary, you can make the model more 'transportable' by using the model variable scratchFolder:  %scratchFolder%\temp.shp - this will automatically use a writeable path (usually "scratch" in the same folder as your default gdb).