<?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 Iterator to add succeeding values to feature output name and iterators into other iterators in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-add-succeeding-values-to-feature/m-p/1558987#M4036</link>
    <description>&lt;P&gt;Hi all. I am attempting to create a large model of many submodels, all of which contain iterators. The first submodel is an iterate raster model which outputs clipped rasters. It ends with the "Collect Values" tool. Next, I have two questions:&lt;/P&gt;&lt;P&gt;1. When I add the first submodel to the larger model, I can't connect the output to another iterator. I assume that all I can really do here is re-connect the workspace to the second iterator and simply have the submodel act as a precondition. Please let me know if there is something I am missing.&lt;/P&gt;&lt;P&gt;2. I want to rename the outputs from the first model so that their names include their year. There is one raster per year, beginning in 1985. So I want the output to be something like "Raster_1985", then "Raster_1986", up to "Raster 2023". I thought maybe Iterate Time was the way to do this but I can't figure it out. Any help?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 23:28:45 GMT</pubDate>
    <dc:creator>BarrettLewis1</dc:creator>
    <dc:date>2024-11-14T23:28:45Z</dc:date>
    <item>
      <title>Iterator to add succeeding values to feature output name and iterators into other iterators</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-add-succeeding-values-to-feature/m-p/1558987#M4036</link>
      <description>&lt;P&gt;Hi all. I am attempting to create a large model of many submodels, all of which contain iterators. The first submodel is an iterate raster model which outputs clipped rasters. It ends with the "Collect Values" tool. Next, I have two questions:&lt;/P&gt;&lt;P&gt;1. When I add the first submodel to the larger model, I can't connect the output to another iterator. I assume that all I can really do here is re-connect the workspace to the second iterator and simply have the submodel act as a precondition. Please let me know if there is something I am missing.&lt;/P&gt;&lt;P&gt;2. I want to rename the outputs from the first model so that their names include their year. There is one raster per year, beginning in 1985. So I want the output to be something like "Raster_1985", then "Raster_1986", up to "Raster 2023". I thought maybe Iterate Time was the way to do this but I can't figure it out. Any help?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 23:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterator-to-add-succeeding-values-to-feature/m-p/1558987#M4036</guid>
      <dc:creator>BarrettLewis1</dc:creator>
      <dc:date>2024-11-14T23:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Iterator to add succeeding values to feature output name and iterators into other iterators</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterator-to-add-succeeding-values-to-feature/m-p/1562901#M4038</link>
      <description>&lt;P&gt;1] To expose the sub model in your master model, edit the sub model and expose the output of the collect values tool as a PARAMETER. Just right click on it and select parameter. Save you changes then drag 'n' drop the sub-model into the master model and you will be able to feed the &lt;U&gt;list&lt;/U&gt; of rasters into the next tool.&lt;/P&gt;&lt;P&gt;2] You don't say where the year value is stored? I assume its part of the file path name of the rasters that the iterator is stepping over? If so use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/calculate-value.htm" target="_self"&gt;calculate value&lt;/A&gt; tool to extract that part of the file name and then use &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/inline-variable-substitution.htm" target="_self"&gt;inline variable substitution&lt;/A&gt; to help build your output raster name. I would so this all in the sub-model.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 00:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterator-to-add-succeeding-values-to-feature/m-p/1562901#M4038</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2024-11-27T00:06:24Z</dc:date>
    </item>
  </channel>
</rss>

