<?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 adding a global turn restriction from a feature class attribute. in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662263#M6381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set up a network dataset in 9.2, but I'm having difficulty defining turning restrictions based on field values in the roads attribute table.&amp;nbsp; In the attribute table for the roads there are 4 fields which describe if a left turn or right turn is restricted in the from-to direction and to-from direction based on digitized direction.&amp;nbsp; How can I create a restriction attribute in the network dataset that evaluates the turn as restricted or not??&amp;nbsp; I thought you could use the turn.angle in an expression but the fields that contain the restriction are not listed?&amp;nbsp; I've read the online help page and do not want to create a turn feature class because the values are already stored in the road centreline feature class.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob O.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 21:36:06 GMT</pubDate>
    <dc:creator>RobOstwald</dc:creator>
    <dc:date>2012-04-02T21:36:06Z</dc:date>
    <item>
      <title>adding a global turn restriction from a feature class attribute.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662263#M6381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set up a network dataset in 9.2, but I'm having difficulty defining turning restrictions based on field values in the roads attribute table.&amp;nbsp; In the attribute table for the roads there are 4 fields which describe if a left turn or right turn is restricted in the from-to direction and to-from direction based on digitized direction.&amp;nbsp; How can I create a restriction attribute in the network dataset that evaluates the turn as restricted or not??&amp;nbsp; I thought you could use the turn.angle in an expression but the fields that contain the restriction are not listed?&amp;nbsp; I've read the online help page and do not want to create a turn feature class because the values are already stored in the road centreline feature class.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob O.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 21:36:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662263#M6381</guid>
      <dc:creator>RobOstwald</dc:creator>
      <dc:date>2012-04-02T21:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: adding a global turn restriction from a feature class attribute.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662264#M6382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Alan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your response, but I'm not sure if I follow what your suggesting.&amp;nbsp; I tried creating a network description attribute called left restriction. I used a field expression to get the value from the feature class that indicates if a left restriction occurs in the digitized direction and opposite. In the default values tab under turns I used the vbscript below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restricted = false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a = Turn.Angle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If a &amp;gt; 210 And a &amp;lt; 330 Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If toEdge.AttributeValueByName( "Left Restriction" ) = "LR" Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; restricted = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this script did not work.&amp;nbsp; I'm not clear how to use the element variable and methods.&amp;nbsp; I have minimal programming experience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If a road feature class has attributes that indicate turn restrictions is there an alternative way to apply this to the network without manually creating a turn feature class?&amp;nbsp; Creating a turn feature class is just not feasible in my situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 20:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662264#M6382</guid>
      <dc:creator>RobOstwald</dc:creator>
      <dc:date>2012-04-05T20:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: adding a global turn restriction from a feature class attribute.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662265#M6383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I tried your suggestions and the scripts validate correctly but still does not create a restriction when testing using a route between 2 locations.&amp;nbsp; I've attached screen shots of the network attributes and evaluator scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 21:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662265#M6383</guid>
      <dc:creator>RobOstwald</dc:creator>
      <dc:date>2012-04-13T21:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: adding a global turn restriction from a feature class attribute.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662266#M6384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Alan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got it to work &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 22:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662266#M6384</guid>
      <dc:creator>RobOstwald</dc:creator>
      <dc:date>2012-04-16T22:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: adding a global turn restriction from a feature class attribute.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662267#M6385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a similar problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was just wondering if there is a possibility to detect changes in an attribute between 2 via turn connected edges?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example i have a multimodal network and i want to add a delay to all possible turns that don't follow the same public transport line i'm currently driving. (e.g. changing from Bus A to another edge with Bus A will cause no delay but changing from Bus A to Bus B will cause one)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way to access within a junction evaluator not only the angle but also 1 attribute of the source and one of the destination edge?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 14:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-a-global-turn-restriction-from-a-feature/m-p/662267#M6385</guid>
      <dc:creator>PaulSchneider1</dc:creator>
      <dc:date>2012-09-25T14:47:40Z</dc:date>
    </item>
  </channel>
</rss>

