<?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: Iterate different stops for different routes  in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351005#M3290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can generate random sequences between FA...F using excel, save them to a notepad file and then use the route builder to build routes. I think this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Srirama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2015 17:40:07 GMT</pubDate>
    <dc:creator>RamB</dc:creator>
    <dc:date>2015-09-28T17:40:07Z</dc:date>
    <item>
      <title>Iterate different stops for different routes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351003#M3288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way that I can build a model to iterate for different routes based on different combinations of stops? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have 6 stops A,B,C,D,E and F. The fixed sequencing is F--&amp;gt;A--&amp;gt; .......--&amp;gt;F.&lt;/P&gt;&lt;P&gt;After the first 2 stops, whatever combinations of B,C,D,E are possible before the route ends at F. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the list of total distance travelled based on the different combinations. Does anyone knows how I may go about doing it? Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 16:31:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351003#M3288</guid>
      <dc:creator>HazelAng1</dc:creator>
      <dc:date>2015-09-27T16:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate different stops for different routes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351004#M3289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Out of the box modelbuilder wouldn't allow you to do this without manually setting up all of your permutations for your routes. I would think that what you'd want to do is develop a script tool that can return a list of all of your different route permutations and then use a submodel with an iterator to solve for each of these permutations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 01:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351004#M3289</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-09-28T01:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate different stops for different routes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351005#M3290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can generate random sequences between FA...F using excel, save them to a notepad file and then use the route builder to build routes. I think this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Srirama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 17:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351005#M3290</guid>
      <dc:creator>RamB</dc:creator>
      <dc:date>2015-09-28T17:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate different stops for different routes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351006#M3291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srirama&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a notepad with all the permutations available. However, I am not too&lt;/P&gt;&lt;P&gt;sure how to go about from here. I have my network layer with me as well.&lt;/P&gt;&lt;P&gt;I'm only stuck with how to fit that list of permutations into an iterator&lt;/P&gt;&lt;P&gt;to generate different routes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hazel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Sep 29, 2015 at 1:41 AM, Srirama Bhamidipati &amp;lt;geonet@esri.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 17:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351006#M3291</guid>
      <dc:creator>HazelAng1</dc:creator>
      <dc:date>2015-09-30T17:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate different stops for different routes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351007#M3292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hazel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you by any chance familiar with python? You could use excel to create the permutations or even have them written down in notepad, but taking these approaches is going to result in you having to manually input this information into your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would highly suggest using python to accomplish this task. Within python creating the permutations is a one line call. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="129031" alt="2015-09-30_1630.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/129031_2015-09-30_1630.png" style="width: 620px; height: 164px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how well you understand python, but I have included code below that I was able to utilize to create the results you're seeking. You can review this if you want to utilize this workflow to accomplish your task. I pulled the example from the page listed below and modified it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Make Route Layer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/network-analyst-toolbox/make-route-layer.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/network-analyst-toolbox/make-route-layer.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Name: MakeRouteLayer_Workflow.py
# Description: Find a best route to visit the stop locations and save the 
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; route to a layer file. The stop locations are geocoded from a 
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text file containing the addresses.
# Requirements: Network Analyst Extension 
# Import system modules
import arcpy
import itertools
import os
from arcpy import env
try:&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataPath = os.path.join(os.path.dirname(__file__), "data")
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check out the Network Analyst extension license
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CheckOutExtension("Network")
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set environment settings
&amp;nbsp;&amp;nbsp;&amp;nbsp; env.workspace = os.path.join(dataPath, "SanFrancisco.gdb")
&amp;nbsp;&amp;nbsp;&amp;nbsp; env.overwriteOutput = True
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set local variables
&amp;nbsp;&amp;nbsp;&amp;nbsp; inNetworkDataset = "Transportation/Streets_ND"
&amp;nbsp;&amp;nbsp;&amp;nbsp; outNALayerName = "BestRoute"
&amp;nbsp;&amp;nbsp;&amp;nbsp; impedanceAttribute = "TravelTime"
&amp;nbsp;&amp;nbsp;&amp;nbsp; outStops = "Analysis/Stores"
&amp;nbsp;&amp;nbsp;&amp;nbsp; outLayerFile = os.path.join(dataPath, "output", outNALayerName + ".lyr")
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(os.path.dirname(outLayerFile)):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.Delete(os.path.dirname(outLayerFile))
&amp;nbsp;&amp;nbsp;&amp;nbsp; os.makedirs(os.path.dirname(outLayerFile))&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Create a new Route layer. For this scenario, the default value for all the
&amp;nbsp;&amp;nbsp;&amp;nbsp; # remaining parameters statisfies the analysis requirements
&amp;nbsp;&amp;nbsp;&amp;nbsp; outNALayer = arcpy.na.MakeRouteLayer(inNetworkDataset, outNALayerName, impedanceAttribute)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get the layer object from the result object. The route layer can now be
&amp;nbsp;&amp;nbsp;&amp;nbsp; # referenced using the layer object.
&amp;nbsp;&amp;nbsp;&amp;nbsp; outNALayer = outNALayer.getOutput(0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get the names of all the sublayers within the route layer.
&amp;nbsp;&amp;nbsp;&amp;nbsp; subLayerNames = arcpy.na.GetNAClassNames(outNALayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Stores the layer names that we will use later
&amp;nbsp;&amp;nbsp;&amp;nbsp; stopsLayerName = subLayerNames["Stops"]
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Load the geocoded address locations as stops mapping the address field from
&amp;nbsp;&amp;nbsp;&amp;nbsp; # geocoded stop features as Name property using field mappings.
&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldMappings = arcpy.na.NAClassFieldMappings(outNALayer, stopsLayerName)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldMappings["Name"].mappedFieldName = "NAME"
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get a list of all of the OIDs for the stops we need to create a route against
&amp;nbsp;&amp;nbsp;&amp;nbsp; oidfieldname = arcpy.Describe(outStops).oidfieldname&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(outStops, ["OID@"], "{} &amp;lt; {}".format(*[oidfieldname, 6])) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oids = [row[0] for row in cursor]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get all of the permutations for all of the stops except the start/end
&amp;nbsp;&amp;nbsp;&amp;nbsp; permutations = list(itertools.permutations(oids[1:-1], len(oids)-2))
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; stopsLayer = arcpy.management.MakeFeatureLayer(outStops, "LoadOrder")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for n,stops in enumerate(permutations):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Add the start stop
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.SelectLayerByAttribute(stopsLayer, "NEW_SELECTION", "{} = {}".format(*[oidfieldname, oids[0]]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.na.AddLocations(outNALayer, stopsLayerName, stopsLayer, fieldMappings, "", exclude_restricted_elements="EXCLUDE",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append="CLEAR") 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Add the in-between stops in the permutation order
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i, stop in enumerate(stops):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.SelectLayerByAttribute(stopsLayer, "NEW_SELECTION", "{} = {}".format(*[oidfieldname, stop]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.na.AddLocations(outNALayer, stopsLayerName, stopsLayer, fieldMappings, "", exclude_restricted_elements="EXCLUDE",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append="APPEND")&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Add the end stop
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.SelectLayerByAttribute(stopsLayer, "NEW_SELECTION", "{} = {}".format(*[oidfieldname, oids[-1]]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.na.AddLocations(outNALayer, stopsLayerName, stopsLayer, fieldMappings, "", exclude_restricted_elements="EXCLUDE",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append="APPEND") 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Solve the route layer, ignore any invalid locations such as those that
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # can not be geocoded
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.na.Solve(outNALayer,"SKIP")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Save the solved route layer as a layer file on disk with relative paths
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.SaveToLayerFile(outNALayer,outLayerFile.replace(".lyr", "_{0}.lyr".format(str(n+1).zfill(len(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permutations)))),"RELATIVE")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Script completed successfully")
except Exception as e:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred, print line number and error message
&amp;nbsp;&amp;nbsp;&amp;nbsp; import traceback, sys
&amp;nbsp;&amp;nbsp;&amp;nbsp; tb = sys.exc_info()[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp; print("An error occured on line %i" % tb.tb_lineno)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print(str(e))
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note, if you wanted you could take lines 52-83 from my code, convert it into a script tool and then use this within a Model to implement the advanced logic needed here to execute the task. This iteration logic would not be natively possible to implement within ModelBuilder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:30:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351007#M3292</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2021-12-11T16:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate different stops for different routes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351008#M3293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python is good way to solve. But if you don't understand it, you tend to force your data to fit into the requirements of the code instead of your own way of solving. If you understand python, you can go by above solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not understand python, read carefully the following page. It is in 9.3 version, but I am sure it exists in 10.2 version also. Basically you will need two columns with your stops. One column tells arcgis which route a stops belongs to. Second column tell the order or sequence number of that stop within a route. So if you can load a table in this format and ask to generate a route/ path. You will have your solution. I used to do this 10 years ago and it works perfect. I am sure it has only gotten better. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, read very carefully and understand this page: &lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=finding_the_best_route" title="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=finding_the_best_route"&gt;ArcGIS Desktop Help 9.3 - finding the best route&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Specifically focus on "Stop Properties" section and within this section, understand parts on- RouteName and sequence.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best wishes,&lt;/P&gt;&lt;P&gt;Srirama Bhamidipati&lt;/P&gt;&lt;P&gt;Transport Planner&lt;/P&gt;&lt;P&gt;Delft - South Africa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 04:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351008#M3293</guid>
      <dc:creator>RamB</dc:creator>
      <dc:date>2015-10-01T04:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate different stops for different routes</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351009#M3294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddie and Srirama&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the help. I will try them out. Hopefully they work! Thanks so much once again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hazel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/iterate-different-stops-for-different-routes/m-p/351009#M3294</guid>
      <dc:creator>HazelAng1</dc:creator>
      <dc:date>2015-10-01T13:59:49Z</dc:date>
    </item>
  </channel>
</rss>

