<?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: Iterating tables and keeping their respective names in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/iterating-tables-and-keeping-their-respective/m-p/1373653#M3957</link>
    <description>&lt;P&gt;Use Inline variable substitution:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make the GDB table name something like %Name%_MB&lt;/P&gt;&lt;P&gt;Then you'll get&amp;nbsp;January_2020_MB,&amp;nbsp;February_2020_MB tables out.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 20:52:54 GMT</pubDate>
    <dc:creator>BobBooth1</dc:creator>
    <dc:date>2024-01-23T20:52:54Z</dc:date>
    <item>
      <title>Iterating tables and keeping their respective names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterating-tables-and-keeping-their-respective/m-p/1373416#M3956</link>
      <description>&lt;P&gt;I have 12 CSV files, each containing data for the respective month of the year. They are all named respectively, i.e&lt;EM&gt;. January_2020&lt;/EM&gt;, &lt;EM&gt;February_2020&lt;/EM&gt;, &lt;EM&gt;March_2020&lt;/EM&gt; etc and are stored in a folder named &lt;EM&gt;2020_monthly&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;For the smooth running of the workflow, I first convert the CSVs into geodatabase tables. Naturally, I need these tables to retain the same names as their respective CSVs.&lt;/P&gt;&lt;P&gt;I then need to display all of these tables as points, converting them into feature classes in the geodatabase on the way. For the sake of organization and smooth workflow, I need the new feature classes to also keep the original Month_Year name. This is where I get stuck, as my ModelBuilder just produces one table/feature class and that’s it. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmmaMartin_0-1706018035126.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92501iE69BBD74AC820EEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EmmaMartin_0-1706018035126.png" alt="EmmaMartin_0-1706018035126.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="EmmaMartin_2-1706018180523.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92503i1705071E87370116/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EmmaMartin_2-1706018180523.png" alt="EmmaMartin_2-1706018180523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 13:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterating-tables-and-keeping-their-respective/m-p/1373416#M3956</guid>
      <dc:creator>EmmaMartin</dc:creator>
      <dc:date>2024-01-23T13:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Iterating tables and keeping their respective names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterating-tables-and-keeping-their-respective/m-p/1373653#M3957</link>
      <description>&lt;P&gt;Use Inline variable substitution:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make the GDB table name something like %Name%_MB&lt;/P&gt;&lt;P&gt;Then you'll get&amp;nbsp;January_2020_MB,&amp;nbsp;February_2020_MB tables out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 20:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterating-tables-and-keeping-their-respective/m-p/1373653#M3957</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2024-01-23T20:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Iterating tables and keeping their respective names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterating-tables-and-keeping-their-respective/m-p/1387771#M3961</link>
      <description>&lt;P&gt;Two notes about inline variable substitution to generate output names:&lt;/P&gt;&lt;P&gt;If you need to get more fancy, for example, change special characters, add a filename extension, or specify a full path to put the output in a specific location, the way to do this is using Python string expressions in the Calculate Value tool. If it really gets complicated you can write a python function in that tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do this in a loop, it's good practice to use precondition, connecting the Calculate Value tool to the tool that writes output using the calculated path -- to ensure the pathnames get calculated before you use them within the process chain.&lt;/P&gt;&lt;P&gt;Example Calculate Value Python expression, with a fix in case the Name has an embedded space, and a .dbf extension for writing in dbase format to a folder.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;r"%Out Folder%\%Name%.dbf".replace(" ","_")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 22:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterating-tables-and-keeping-their-respective/m-p/1387771#M3961</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2024-02-27T22:42:07Z</dc:date>
    </item>
  </channel>
</rss>

