<?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>idea Be able to create network analyst travel mode with Python in ArcGIS Network Analyst Ideas</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idi-p/1542020</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Create the necessary methods and classes to support defining a network dataset travel mode with Python&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 16:16:57 GMT</pubDate>
    <dc:creator>d484648</dc:creator>
    <dc:date>2024-09-24T16:16:57Z</dc:date>
    <item>
      <title>Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idi-p/1542020</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Create the necessary methods and classes to support defining a network dataset travel mode with Python&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 16:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idi-p/1542020</guid>
      <dc:creator>d484648</dc:creator>
      <dc:date>2024-09-24T16:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python - Status changed to: Needs Clarification</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1542031#M99</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; Thanks for submitting an idea!&lt;/P&gt;
&lt;P&gt;You can create a travel mode in Python using the arcpy.nax.TravelMode() class as documented here:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/travelmode-nax.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/travelmode-nax.htm&lt;/A&gt;.&amp;nbsp; Does this serve your needs?&lt;/P&gt;
&lt;P&gt;The only thing this cannot do is save the travel mode permanently to the network dataset.&amp;nbsp; Is that the functionality you're asking for?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 16:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1542031#M99</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-09-24T16:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1542042#M100</link>
      <description>&lt;P&gt;Thanks for the link. I'll take a look at it, but in the long term I'd like to save the travel mode permanently to the dataset instead of having to recreate it every time I want to use it.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 17:09:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1542042#M100</guid>
      <dc:creator>d484648</dc:creator>
      <dc:date>2024-09-24T17:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1542520#M101</link>
      <description>&lt;P&gt;Okay.&amp;nbsp; Can you tell us more about your desired workflow?&amp;nbsp; Why do you want to create a travel mode in Python and save it permanently to the network dataset?&amp;nbsp; (This doesn't sound like an unreasonable request, but I need to better understand your needs to prioritize this enhancement and determine whether some existing workflow could meet your needs.)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 15:20:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1542520#M101</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-09-25T15:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1567061#M106</link>
      <description>&lt;P&gt;This thread is a few months old but I'm running into a similar issue. I have a workflow where I need to create a new Network Dataset on the fly based on a new set of routes, then run a closest facility analysis. Currently, the Create Network Dataset function does not make a default travel mode so I cannot create the Closest Facility dataset without using a template dataset which I'd like to avoid since several different organizations may be using this tool.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 22:58:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1567061#M106</guid>
      <dc:creator>PamT</dc:creator>
      <dc:date>2024-12-10T22:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1567066#M107</link>
      <description>&lt;P&gt;Thanks for the input,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/848824"&gt;@PamT&lt;/a&gt;.&amp;nbsp; That's an interesting use case, and I understand the problem.&amp;nbsp; However, I'd still like to understand how you expect to use this workflow effectively.&amp;nbsp; When you run the Create Network Dataset tool, it creates a very simple network that has only a length attribute based on the shape length of the edge sources.&amp;nbsp; Is this cost attribute sufficient for your needs?&amp;nbsp; I suppose there are some cases where this would be sufficient, but usually people need to adjust their cost attributes to their needs before the network is usable, so even if we gave you the ability to add travel modes, the network might still be useless.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 23:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1567066#M107</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-12-10T23:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1568402#M108</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/101257"&gt;@MelindaMorang&lt;/a&gt;&amp;nbsp;- Our use case is very simple. We're trying to find possible paths from a point to any intersection that meets a certain criteria. Nothing fancy at all that requires extra configuration so the default distance attribute is sufficient for this. For other reasons we may have to go back to using the older Legacy NA module instead of the newer NAX module which would also solve this problem.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 13:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1568402#M108</guid>
      <dc:creator>PamT</dc:creator>
      <dc:date>2024-12-13T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1568426#M109</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/848824"&gt;@PamT&lt;/a&gt;.&amp;nbsp; That does make sense.&lt;/P&gt;
&lt;P&gt;For your use case (since we're unlikely to be able to add this functionality quickly), you might be able to use Python's &lt;A href="https://networkx.org/" target="_self"&gt;networkx&lt;/A&gt; package to construct a graph from your network dataset and then use one of the many graph search algorithms in that package to get the results you need.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=b2227f745a6c4e1c94dd57810729d2a9" target="_self"&gt;Here&lt;/A&gt; is a sample script that creates a networkx graph from a network dataset using the nax NetworkDataset class.&amp;nbsp; Not exactly what you need, but maybe enough to get you started.&lt;/P&gt;
&lt;P&gt;Using a layer-based workflow with arcpy.na, as you suggested, is also an option.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 15:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1568426#M109</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-12-13T15:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1568429#M110</link>
      <description>&lt;P&gt;One further question&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/848824"&gt;@PamT&lt;/a&gt;.&amp;nbsp; You said you don't want to use a network dataset template, but why wouldn't that work for you?&amp;nbsp; If you don't need any complicated cost or restriction attributes, then the template will be very simple and won't require a consistent schema in the source feature classes.&amp;nbsp; As long as the inputs have the same feature class names, it should just work fine.&amp;nbsp; Or is enforcing the feature class names too much for your multiple organizations?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 15:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1568429#M110</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2024-12-13T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1568700#M111</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/101257"&gt;@MelindaMorang&lt;/a&gt;&amp;nbsp;- The template is just one extra piece of data that has to be attached to the script that can get misplaced when transferring from organization to organization. The python toolbox can be self-contained, if needed, with an embedded script.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Dec 2024 14:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1568700#M111</guid>
      <dc:creator>PamT</dc:creator>
      <dc:date>2024-12-15T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1578028#M112</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/101257"&gt;@MelindaMorang&lt;/a&gt;&amp;nbsp;I recently installed ArcGIS Pro 3.4, and started to updated the network dataset I download from the local government GIS site.&amp;nbsp; Then, I created a travel mode for buses and attempted to create a "Oneway" restriction.&amp;nbsp; The attribute field uses numbers in place of text (0 = Two-Way), 1= FT, and 2=TF).&amp;nbsp; Upon opening the Field Script Evaluator Properties window, two things pop out.&amp;nbsp; First, the parcer only accepts Python instead of VBScript, and second of "Result" you now have "Value" which is rather confusing to me.&amp;nbsp; So I do my best to convert the code to Python.&amp;nbsp; But, after assigning the restriction, building the network and running the route builder, I get an error message, saying my stops are unlocated and cannot be map.&amp;nbsp; When I uncheck the "Oneway" restrictor, the route is created, though not as I like.&amp;nbsp; Any asistance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arcgis 34 network route error.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123805iC09F30D5355749A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="arcgis 34 network route error.jpg" alt="arcgis 34 network route error.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="field script evaluator properties arcgis 34.jpg" style="width: 750px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123804i3A782A32F46B20E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="field script evaluator properties arcgis 34.jpg" alt="field script evaluator properties arcgis 34.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 22:42:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1578028#M112</guid>
      <dc:creator>MDKaller</dc:creator>
      <dc:date>2025-01-22T22:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1578485#M113</link>
      <description>&lt;P&gt;Okay, regarding my last post, please disregard that.&amp;nbsp; I believe I figured it out.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 23:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1578485#M113</guid>
      <dc:creator>MDKaller</dc:creator>
      <dc:date>2025-01-23T23:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python - Status changed to: Under Consideration</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1673063#M145</link>
      <description>&lt;P&gt;We are working on a project that will help users transfer travel modes from one network dataset to another, and I believe the components of that project will satisfy the needs expressed here.&amp;nbsp; When we complete this project, I'll report back here, hopefully with a code sample.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 17:51:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1673063#M145</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2025-12-15T17:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1678428#M162</link>
      <description>&lt;P&gt;Excellent!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 18:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1678428#M162</guid>
      <dc:creator>d484648</dc:creator>
      <dc:date>2026-01-16T18:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to create network analyst travel mode with Python - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1692336#M163</link>
      <description>&lt;DIV&gt;The forthcoming Pro 3.7 release will include some new tools and Python commands you can use to create or modify network dataset travel modes programmatically using Geoprocessing tools and/or standalone Python.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;Export Network Travel Modes (geoprocessing tool) - Exports a network's travel modes to a JSON file.&lt;/LI&gt;&lt;LI&gt;Replace Network Travel Modes (geoprocessing tool) - Replaces a network's current travel modes with the ones defined in the input JSON file, which can be created manually (or programmatically) or via the Export Network Travel Modes tool.&lt;/LI&gt;&lt;LI&gt;The arcpy.nax.NetworkDataset class's updateNetworkDatasetSchema() method has a new parameter, travel_modes, which allows you to set travel modes on a network dataset directly in Python.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;In all the above functionality, travel modes are defined using a well-known, documented JSON structure.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'll post documentation for all of the above when it becomes publicly available after the release.&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Mar 2026 19:21:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-ideas/be-able-to-create-network-analyst-travel-mode-with/idc-p/1692336#M163</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2026-03-24T19:21:11Z</dc:date>
    </item>
  </channel>
</rss>

