<?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: How to iterate multiple Gdb's and their Feature classes to add fields into each of them? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1284824#M67568</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/15530"&gt;@RhettZufelt&lt;/a&gt;&amp;nbsp;is correct.&amp;nbsp; You need this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;workspaces = ['path/to/workspace1','path/to/workspace2','path/to/workspace3']&lt;/LI-CODE&gt;&lt;P&gt;That's step 1.&amp;nbsp; There are more steps after that to fix your code.&amp;nbsp; If you are still needing help on this, please respond and I (we) can help you.&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 16:57:19 GMT</pubDate>
    <dc:creator>ZacharyUhlmann1</dc:creator>
    <dc:date>2023-05-02T16:57:19Z</dc:date>
    <item>
      <title>How to iterate multiple Gdb's and their Feature classes to add fields into each of them?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1278344#M67414</link>
      <description>&lt;P&gt;I created 3 gdb's under the home project gdb and created 3 point feature classes in each respectively. How do I iterate through all the file gdb's and add fields into each of them?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LGIM scrip gdbs.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67904i179AC75BE3DC8D62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LGIM scrip gdbs.png" alt="LGIM scrip gdbs.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LGIM script.png" style="width: 710px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67905iF9D2B2F34A699B77/image-size/large?v=v2&amp;amp;px=999" role="button" title="LGIM script.png" alt="LGIM script.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 16:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1278344#M67414</guid>
      <dc:creator>AmyKou</dc:creator>
      <dc:date>2023-04-13T16:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate multiple Gdb's and their Feature classes to add fields into each of them?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1278347#M67415</link>
      <description>&lt;P&gt;Give Add Fields a shot&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-fields.htm" target="_blank"&gt;Add Fields (multiple) (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;, especially if you batch it in the GUI. (Right click, "Batch"). If you only have three (or even 9) feature classes, this is gonna be the easiest way to do it.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 16:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1278347#M67415</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2023-04-13T16:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate multiple Gdb's and their Feature classes to add fields into each of them?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1279333#M67431</link>
      <description>&lt;P&gt;You need a list of workspaces to iterate, in your current code, 'workspaces' is not defined.&lt;/P&gt;&lt;P&gt;So, set the folder that contains them to &lt;SPAN&gt;arcpy.env.workspace = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"path:to/workspaces/folder"&lt;/SPAN&gt;,&amp;nbsp; then&amp;nbsp;&lt;SPAN&gt;workspaces = arcpy.ListWorkspaces(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"*"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"FileGDB"&lt;/SPAN&gt;&lt;SPAN&gt;), OR, manually make the list of workspaces.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then, you need to move the featureclasses = arcpy.ListFeatureClasses()&amp;nbsp; into the for workspace loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Need to set the workspace first so it can list the featureclasses in that workspace.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The rest of the code looks good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 17:22:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1279333#M67431</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-04-17T17:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate multiple Gdb's and their Feature classes to add fields into each of them?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1284824#M67568</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/15530"&gt;@RhettZufelt&lt;/a&gt;&amp;nbsp;is correct.&amp;nbsp; You need this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;workspaces = ['path/to/workspace1','path/to/workspace2','path/to/workspace3']&lt;/LI-CODE&gt;&lt;P&gt;That's step 1.&amp;nbsp; There are more steps after that to fix your code.&amp;nbsp; If you are still needing help on this, please respond and I (we) can help you.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 16:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-iterate-multiple-gdb-s-and-their-feature/m-p/1284824#M67568</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2023-05-02T16:57:19Z</dc:date>
    </item>
  </channel>
</rss>

