<?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: arcpy.nax does not use travel modes as specified in ND properties in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333690#M8506</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RavenSchmidt_0-1695984174554.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81979iF71B37BB9EB92DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RavenSchmidt_0-1695984174554.png" alt="RavenSchmidt_0-1695984174554.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Green is not a line but the correct service area polygon.&lt;BR /&gt;Pink is the result when I use arcpy.nax for the same analysis. It seems to ignore my prohibitions (bus is only supposed to use bus line)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2023 10:44:32 GMT</pubDate>
    <dc:creator>RavenSchmidt</dc:creator>
    <dc:date>2023-09-29T10:44:32Z</dc:date>
    <item>
      <title>arcpy.nax does not use travel modes as specified in ND properties</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333423#M8504</link>
      <description>&lt;P&gt;The travel modes of my network dataset work correctly in ArcGIS Pro, but do not work using python arcpy.nax. Is there something wron in how I call them up in my script or are there some informations from the properties that are not used by arcpy and have to be manually recreated?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;nd_travel_modes = arcpy.nax.GetTravelModes(network_layer)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;mode &lt;SPAN&gt;in &lt;/SPAN&gt;nd_travel_modes:&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;# Set properties.&lt;BR /&gt;&lt;/SPAN&gt;    service_area.timeUnits = arcpy.nax.TimeUnits.Minutes&lt;BR /&gt;    service_area.defaultImpedanceCutoffs = [&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;20&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;]&lt;BR /&gt;    service_area.travelMode = mode&lt;BR /&gt;    service_area.outputType = arcpy.nax.ServiceAreaOutputType.Polygons&lt;BR /&gt;    service_area.geometryAtOverlap = arcpy.nax.ServiceAreaOverlapGeometry.Overlap&lt;BR /&gt;    &lt;SPAN&gt;##### Load the inputs. #####&lt;BR /&gt;&lt;/SPAN&gt;    input_facilities = &lt;SPAN&gt;r"C:\Users\callt\Desktop\oS\psX\projects\1238 Warendorf\data\analysis\p30\1238_data.gdb\koordinaten_betriebe"&lt;BR /&gt;&lt;/SPAN&gt;    service_area.load(arcpy.nax.ServiceAreaInputDataType.Facilities&lt;SPAN&gt;, &lt;/SPAN&gt;input_facilities)&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;##### Solve the analysis. #####&lt;BR /&gt;&lt;/SPAN&gt;    result = service_area.solve()&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333423#M8504</guid>
      <dc:creator>RavenSchmidt</dc:creator>
      <dc:date>2023-09-28T15:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.nax does not use travel modes as specified in ND properties</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333635#M8505</link>
      <description>&lt;P&gt;It looks to me like this code should work.&amp;nbsp; However, I can't see where you created the Service Area object (that's probably not the issue).&amp;nbsp; What results are you seeing that tell you the travel mode isn't working correctly?&amp;nbsp; Can you give some more details or post some screenshots?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 00:10:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333635#M8505</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2023-09-29T00:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.nax does not use travel modes as specified in ND properties</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333690#M8506</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RavenSchmidt_0-1695984174554.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81979iF71B37BB9EB92DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RavenSchmidt_0-1695984174554.png" alt="RavenSchmidt_0-1695984174554.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Green is not a line but the correct service area polygon.&lt;BR /&gt;Pink is the result when I use arcpy.nax for the same analysis. It seems to ignore my prohibitions (bus is only supposed to use bus line)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 10:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333690#M8506</guid>
      <dc:creator>RavenSchmidt</dc:creator>
      <dc:date>2023-09-29T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.nax does not use travel modes as specified in ND properties</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333751#M8507</link>
      <description>&lt;P&gt;A couple of other questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I can't see from your code snippet where you save the resulting Service Area polygons.&amp;nbsp; Are you using the export() method?&amp;nbsp; This might be a dumb question, but are you sure you're saving the result of each iteration to a separate feature class and looking at the right one in the map?&amp;nbsp; What happens if you run the script with just one travel mode (the one for bus that you're having trouble with)?&lt;/LI&gt;&lt;LI&gt;Are you sure the points you're using as inputs are locating in the desired place on the network?&amp;nbsp; Are you using some network location settings in Pro that you're not using in your script?&lt;/LI&gt;&lt;LI&gt;Are you sure it's really working as intended within the Pro UI?&amp;nbsp; Can you paste a screenshot of your layer's analysis settings and your network dataset configuration (connectivity policies, travel mode and attribute configuration)?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 29 Sep 2023 14:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/arcpy-nax-does-not-use-travel-modes-as-specified/m-p/1333751#M8507</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2023-09-29T14:27:45Z</dc:date>
    </item>
  </channel>
</rss>

