<?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: Modify or use portion of inline variable %Name% from iterator in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807239#M660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It renamed the first file as 1 and took the name of first input file to rename the second file and so on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2018 06:08:01 GMT</pubDate>
    <dc:creator>SUSHILLAMICHHANE</dc:creator>
    <dc:date>2018-09-27T06:08:01Z</dc:date>
    <item>
      <title>Modify or use portion of inline variable %Name% from iterator</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807237#M658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;I have a model using the 'Iterate Feature' tool.&amp;nbsp; I am using the %Name% inline variable from the iterator to name my output files.&amp;nbsp; The %Name% variable takes on the values "All_2014_06", "All_2014_07",.. etc.&amp;nbsp; I would like to name my files with "Speed_2014_06", "Speed_2014_07", etc. instead... is there a way to alter the %Name% variable or only use a subset of the variable (the date portion) to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 22:05:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807237#M658</guid>
      <dc:creator>RobertRockwood</dc:creator>
      <dc:date>2016-10-06T22:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Modify or use portion of inline variable %Name% from iterator</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807238#M659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out the solution.&amp;nbsp; You can use the 'Calculate Value' tool from the 'Insert'&amp;gt;&amp;gt;'Model Builder Tools' menu with the iterator 'Name' variable as an input.&amp;nbsp; Adding the python script "%Name%"[4: ] will return the character string minus the first 4 characters.&amp;nbsp; You can then use the result of the tool as your inline variable for naming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 07:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807238#M659</guid>
      <dc:creator>RobertRockwood</dc:creator>
      <dc:date>2016-10-07T07:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify or use portion of inline variable %Name% from iterator</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807239#M660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It renamed the first file as 1 and took the name of first input file to rename the second file and so on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 06:08:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807239#M660</guid>
      <dc:creator>SUSHILLAMICHHANE</dc:creator>
      <dc:date>2018-09-27T06:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modify or use portion of inline variable %Name% from iterator</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807240#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, that is exactly how to do it! The only thing I'd add is if the variable you are using is a pathname (likely to have \ characters in it) you need to escape it, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;r&lt;SPAN class="string token"&gt;"%Path%"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".tif"&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 16:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807240#M661</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-05-23T16:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modify or use portion of inline variable %Name% from iterator</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807241#M662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/35031"&gt;SUSHIL LAMICHHANE&lt;/A&gt;! I know this a really old post but I am experiencing this problem and wondering if you can help me? I have a model that creates a summary table for each unique record in a field. I am using the Calculate Value tool to remove spaces and other invalid characters from the %Value%; my output tables use %Name%. However, the name of the first output is "1" and the second table is what the first table should be and so on. Do you have a solution to this?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/509239_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2020 20:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modify-or-use-portion-of-inline-variable-name-from/m-p/807241#M662</guid>
      <dc:creator>KristinThorpe1</dc:creator>
      <dc:date>2020-10-05T20:26:55Z</dc:date>
    </item>
  </channel>
</rss>

