<?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: Restrictions - how to get it to work? in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633918#M6076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This might help a bit. If you create a restriction evaluator, and then set the Type to "Field", you can enter an expression (the little hand holding the paper on the right) to restrict the attribute you desire. The expression is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;restricted = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If [RoadClass] = "2" Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restricted = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;value = restricted&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where the bracketed is whatever your road class field is called, and "2" is whatever attribute you want restricted. The value goes in the separate value box below the VB code box. After you rebuild the network dataset, you should have an option to use restrictions when routing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this also helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2012 19:49:57 GMT</pubDate>
    <dc:creator>EricStipe</dc:creator>
    <dc:date>2012-06-19T19:49:57Z</dc:date>
    <item>
      <title>Restrictions - how to get it to work?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633916#M6074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been reading and trying to understand, but I cant get it to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a road network over a large area with different attributes like 1,2 and 3 describing how good the roads are. How can I restrict my analyses so it &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;cant&lt;/SPAN&gt;&lt;SPAN&gt; use roads with attribute 2 for example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633916#M6074</guid>
      <dc:creator>JonasJonzen</dc:creator>
      <dc:date>2012-06-19T12:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions - how to get it to work?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633917#M6075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've been reading and trying to understand, but I cant get it to work. &lt;BR /&gt;&lt;BR /&gt;I have a road network over a large area with different attributes like 1,2 and 3 describing how good the roads are. How can I restrict my analyses so it &lt;SPAN style="text-decoration:underline;"&gt;cant&lt;/SPAN&gt; use roads with attribute 2 for example?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_network_dataset/00470000000w000000/"&gt;Take a look here. &lt;/A&gt;&lt;SPAN&gt; It describes how to set up one-way restrictions; you can use this approach to negate travel based on your "good-road" field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Types_of_evaluators_used_by_a_network/00470000000n000000/"&gt;Here is a description of evaluators.&lt;/A&gt;&lt;SPAN&gt; Take a look at the Evaluator examples section, Assigning values to restrictions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/pdf/network-analyst-tutorial.pdf"&gt;Finally, the PDF tutorial is here&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; It pretty much covers you from beginning to end...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope you find this helpful-&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633917#M6075</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2012-06-19T15:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions - how to get it to work?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633918#M6076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This might help a bit. If you create a restriction evaluator, and then set the Type to "Field", you can enter an expression (the little hand holding the paper on the right) to restrict the attribute you desire. The expression is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;restricted = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If [RoadClass] = "2" Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restricted = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;value = restricted&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where the bracketed is whatever your road class field is called, and "2" is whatever attribute you want restricted. The value goes in the separate value box below the VB code box. After you rebuild the network dataset, you should have an option to use restrictions when routing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this also helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 19:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633918#M6076</guid>
      <dc:creator>EricStipe</dc:creator>
      <dc:date>2012-06-19T19:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Restrictions - how to get it to work?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633919#M6077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a ton guys!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the script and after lots of trial and error it seems to work!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Jonas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 10:54:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/restrictions-how-to-get-it-to-work/m-p/633919#M6077</guid>
      <dc:creator>JonasJonzen</dc:creator>
      <dc:date>2012-06-20T10:54:18Z</dc:date>
    </item>
  </channel>
</rss>

