<?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 Solving a routing problem using model builder, without using all stops and barriers at once in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/solving-a-routing-problem-using-model-builder/m-p/866153#M565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;need to run network analysis routing (to calculate distance) on pairs of points with barriers. I have 3 feature classes:&lt;/P&gt;&lt;UL style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px var(--s-prose-spacing-condensed) 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Origins (415 records)&lt;/P&gt;&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px var(--s-prose-spacing-condensed) 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Destinations (415 records)&lt;/P&gt;&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Barriers (415 records)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;All 3 of which share a common unique ID field called [RouteName], (which has a data type of Long). Basically, each Routing has 1 start, 1 stop, and 1 barrier. The barriers represent culvert failures on a road network. I would like to calculate how much travel distance is added to get from the origin (on one side of the failure barrier) to the destination (on the other side of the barrier).&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;I am trying to find a way to for the routing to look at each Origin, Destination, and Barrier set (sharing a common [RouteName] attribute) individually to calculate the route, while ignoring all other Origins, Destinations &amp;amp; Barriers on the road network. For each routing solution, I only want to use one origin, one destination, and one barrier.&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;I have a model set up that successfully routes for one [RouteName] set using the "Select Layer By Attribute" tool in Model Builder. I have attached photos of my current model and my test result for using the expression "[RouteName]=21" in the select Layer by attribute tool for my Origins, Destinations and Barriers.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;&lt;SPAN&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/511285_Capture1.JPG" /&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/511311_Capture.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="background-color: #f9f8f6; border: 0px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P style="background-color: #f9f8f6; border: 0px;"&gt;What I would like to do is be able to set the model to run through each "set" of [RouteName] (Origin, Destination, &amp;amp; Barrier all sharing the same value) and output/append that successful routing to a new feature class with the set's [RouteName} as an attribute. in the end of the model I would have 415 different routes, one for each trio of points.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #f9f8f6; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #f9f8f6; border: 0px;"&gt;Can anybody help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2020 21:07:57 GMT</pubDate>
    <dc:creator>Clarson</dc:creator>
    <dc:date>2020-10-19T21:07:57Z</dc:date>
    <item>
      <title>Solving a routing problem using model builder, without using all stops and barriers at once</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/solving-a-routing-problem-using-model-builder/m-p/866153#M565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;need to run network analysis routing (to calculate distance) on pairs of points with barriers. I have 3 feature classes:&lt;/P&gt;&lt;UL style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px var(--s-prose-spacing-condensed) 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Origins (415 records)&lt;/P&gt;&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0px 0px var(--s-prose-spacing-condensed) 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Destinations (415 records)&lt;/P&gt;&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Barriers (415 records)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;All 3 of which share a common unique ID field called [RouteName], (which has a data type of Long). Basically, each Routing has 1 start, 1 stop, and 1 barrier. The barriers represent culvert failures on a road network. I would like to calculate how much travel distance is added to get from the origin (on one side of the failure barrier) to the destination (on the other side of the barrier).&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;I am trying to find a way to for the routing to look at each Origin, Destination, and Barrier set (sharing a common [RouteName] attribute) individually to calculate the route, while ignoring all other Origins, Destinations &amp;amp; Barriers on the road network. For each routing solution, I only want to use one origin, one destination, and one barrier.&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;I have a model set up that successfully routes for one [RouteName] set using the "Select Layer By Attribute" tool in Model Builder. I have attached photos of my current model and my test result for using the expression "[RouteName]=21" in the select Layer by attribute tool for my Origins, Destinations and Barriers.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px var(--s-prose-spacing) 0px;"&gt;&lt;SPAN&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/511285_Capture1.JPG" /&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/511311_Capture.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="background-color: #f9f8f6; border: 0px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P style="background-color: #f9f8f6; border: 0px;"&gt;What I would like to do is be able to set the model to run through each "set" of [RouteName] (Origin, Destination, &amp;amp; Barrier all sharing the same value) and output/append that successful routing to a new feature class with the set's [RouteName} as an attribute. in the end of the model I would have 415 different routes, one for each trio of points.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #f9f8f6; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #f9f8f6; border: 0px;"&gt;Can anybody help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2020 21:07:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/solving-a-routing-problem-using-model-builder/m-p/866153#M565</guid>
      <dc:creator>Clarson</dc:creator>
      <dc:date>2020-10-19T21:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Solving a routing problem using model builder, without using all stops and barriers at once</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/solving-a-routing-problem-using-model-builder/m-p/1010198#M566</link>
      <description>&lt;P&gt;You need to explore &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm" target="_self"&gt;model iterators&lt;/A&gt;, you can then loop over your routes to select 1 start/stop/barrier, on each loop you create your selections that feed into the add locations tool then solve and append results&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 16:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/solving-a-routing-problem-using-model-builder/m-p/1010198#M566</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2020-12-16T16:35:06Z</dc:date>
    </item>
  </channel>
</rss>

