<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need help building a simple model in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/need-help-building-a-simple-model/m-p/682198#M22656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could probably accomplish this easier with python.&amp;nbsp; Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env

# set workspace where shapefiles are located
env.workspace = r"C:\data\temp\python"

# create empty list
list = []

# append each shapefile in workspace to list
for shapefile in arcpy.ListFeatureClasses("*.shp"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; list.append(shapefile)

# import list of shapefiles into File Geodatabase feature dataset
arcpy.FeatureClassToGeodatabase_conversion(list, r"C:\Temp\Python\Redlands.gdb\Data")

# set workspace to File Geodatabase
env.workspace = r"C:\Temp\Python\Redlands.gdb"

# loop through each feature class in 'Data' feature dataset and add fields
for fc in arcpy.ListFeatureClasses("*", "", "Data"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "SHEET_NAME", "TEXT", "", "", "50")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "ENGINEER", "TEXT", "", "", "100")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "PROJECT_NO", "TEXT", "", "", "50")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "SHEET_NO", "TEXT", "", "", "50")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "DATE", "TEXT", "", "", "50")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:42:12 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-12T04:42:12Z</dc:date>
    <item>
      <title>Need help building a simple model</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/need-help-building-a-simple-model/m-p/682197#M22655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a large amount of shapefiles that I need to do a few things to.&amp;nbsp; First I need to export them as individual Feature Classes into a Feature Dataset within a File Geodatabase.&amp;nbsp; Then I need to add 5 fields to them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SHEET_NAME&amp;nbsp; text&amp;nbsp; 50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ENGINEER&amp;nbsp; text&amp;nbsp; 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PROJECT_NO&amp;nbsp; text&amp;nbsp; 50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SHEET_NO&amp;nbsp; text&amp;nbsp; 50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DATE&amp;nbsp; text&amp;nbsp; 50&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, they can just be named what the shapefile is named.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts on this?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As always thank you in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 15:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/need-help-building-a-simple-model/m-p/682197#M22655</guid>
      <dc:creator>WightmanAdmin</dc:creator>
      <dc:date>2013-10-24T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help building a simple model</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/need-help-building-a-simple-model/m-p/682198#M22656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could probably accomplish this easier with python.&amp;nbsp; Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env

# set workspace where shapefiles are located
env.workspace = r"C:\data\temp\python"

# create empty list
list = []

# append each shapefile in workspace to list
for shapefile in arcpy.ListFeatureClasses("*.shp"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; list.append(shapefile)

# import list of shapefiles into File Geodatabase feature dataset
arcpy.FeatureClassToGeodatabase_conversion(list, r"C:\Temp\Python\Redlands.gdb\Data")

# set workspace to File Geodatabase
env.workspace = r"C:\Temp\Python\Redlands.gdb"

# loop through each feature class in 'Data' feature dataset and add fields
for fc in arcpy.ListFeatureClasses("*", "", "Data"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "SHEET_NAME", "TEXT", "", "", "50")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "ENGINEER", "TEXT", "", "", "100")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "PROJECT_NO", "TEXT", "", "", "50")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "SHEET_NO", "TEXT", "", "", "50")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc, "DATE", "TEXT", "", "", "50")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/need-help-building-a-simple-model/m-p/682198#M22656</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T04:42:12Z</dc:date>
    </item>
  </channel>
</rss>

