<?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 Iterating through 3 separate feature classes containing common unique IDs in Model builder in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterating-through-3-separate-feature-classes/m-p/195797#M1981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; padding: 0px 0px 0.25em;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have some data that I would like to run through network analysis. The data consists of 3 feature classes:&lt;/P&gt;&lt;UL class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; margin: 4px 0px 4px 8px;"&gt;&lt;LI class="" style="border: 0px; margin: 0.4em 1em;"&gt;&lt;P class="" style="border: 0px;"&gt;Origins&lt;/P&gt;&lt;/LI&gt;&lt;LI class="" style="border: 0px; margin: 0.4em 1em;"&gt;&lt;P class="" style="border: 0px;"&gt;Destinations&lt;/P&gt;&lt;/LI&gt;&lt;LI class="" style="border: 0px; margin: 0.4em 1em;"&gt;&lt;P class="" style="border: 0px;"&gt;Barriers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; padding: 0.8em 0px 0.25em;"&gt;All three of these feature classes contain a field called [RouteName] and share a common value for each set of features that need to added as stops and barriers in the network analysis. I have built a model, that correctly builds a route, if I have a definition query turned on for all 3 of my point feature classes (&lt;EM class="" style="border: 0px; font-weight: inherit; font-size: inherit;"&gt;e.g.&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[RouteName]=25).&lt;/P&gt;&lt;P class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; padding: 0.8em 0px 0.25em;"&gt;My question is how can I develop a route for each [RouteName] ID either using model builder or programmatically. I only want the route to load 1 record (with the same ID) from each of the 3 feature classes (2 stops and a barrier) at a time, ignoring all others records while solving the route. I have tried using an iterator, but it seems like I can only iterate for one feature class in the model, at a time.&lt;/P&gt;&lt;P class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; padding: 0.8em 0px 0px;"&gt;I think I need to find a way to iterate through the matching &lt;SPAN&gt;[RouteName]&amp;nbsp;&lt;/SPAN&gt;id's in my origins, destinations and barriers, so I only load 3 at a time for the routing solution, and then move on to the [RouteName] and repeat. I'm not sure how to do that. Anybody have advice for me? I've attached a image of my current model.&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/510987_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2020 20:44:00 GMT</pubDate>
    <dc:creator>ClementLarson</dc:creator>
    <dc:date>2020-10-14T20:44:00Z</dc:date>
    <item>
      <title>Iterating through 3 separate feature classes containing common unique IDs in Model builder</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterating-through-3-separate-feature-classes/m-p/195797#M1981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; padding: 0px 0px 0.25em;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have some data that I would like to run through network analysis. The data consists of 3 feature classes:&lt;/P&gt;&lt;UL class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; margin: 4px 0px 4px 8px;"&gt;&lt;LI class="" style="border: 0px; margin: 0.4em 1em;"&gt;&lt;P class="" style="border: 0px;"&gt;Origins&lt;/P&gt;&lt;/LI&gt;&lt;LI class="" style="border: 0px; margin: 0.4em 1em;"&gt;&lt;P class="" style="border: 0px;"&gt;Destinations&lt;/P&gt;&lt;/LI&gt;&lt;LI class="" style="border: 0px; margin: 0.4em 1em;"&gt;&lt;P class="" style="border: 0px;"&gt;Barriers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; padding: 0.8em 0px 0.25em;"&gt;All three of these feature classes contain a field called [RouteName] and share a common value for each set of features that need to added as stops and barriers in the network analysis. I have built a model, that correctly builds a route, if I have a definition query turned on for all 3 of my point feature classes (&lt;EM class="" style="border: 0px; font-weight: inherit; font-size: inherit;"&gt;e.g.&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[RouteName]=25).&lt;/P&gt;&lt;P class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; padding: 0.8em 0px 0.25em;"&gt;My question is how can I develop a route for each [RouteName] ID either using model builder or programmatically. I only want the route to load 1 record (with the same ID) from each of the 3 feature classes (2 stops and a barrier) at a time, ignoring all others records while solving the route. I have tried using an iterator, but it seems like I can only iterate for one feature class in the model, at a time.&lt;/P&gt;&lt;P class="" style="color: #d7dadc; background-color: #1a1a1b; border: 0px; font-size: 14px; padding: 0.8em 0px 0px;"&gt;I think I need to find a way to iterate through the matching &lt;SPAN&gt;[RouteName]&amp;nbsp;&lt;/SPAN&gt;id's in my origins, destinations and barriers, so I only load 3 at a time for the routing solution, and then move on to the [RouteName] and repeat. I'm not sure how to do that. Anybody have advice for me? I've attached a image of my current model.&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/510987_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2020 20:44:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/iterating-through-3-separate-feature-classes/m-p/195797#M1981</guid>
      <dc:creator>ClementLarson</dc:creator>
      <dc:date>2020-10-14T20:44:00Z</dc:date>
    </item>
  </channel>
</rss>

