<?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 No option for string-type descriptor in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/no-option-for-string-type-descriptor/m-p/197241#M1995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't see any possibility to add string descriptor to my network dataset. As it seams, only numeric types of descriptor are available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is create a parameterized restriction using road identificator (which is of string type) as input parameter to avoid specified road in tracing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The restriction evaluator script should be something like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim restrict,param&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restrict = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;param = ParameterValueByName("roadIdStringParam") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If (Edge.AttributeValueByName( "roadIdStringDescriptor" ) = param) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restrict = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;of course, it doesn't work because roadIdStringDescriptor cannot be defined as string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have any suggestion for a workaround? Or am I getting it all wrong? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGis 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 12:09:17 GMT</pubDate>
    <dc:creator>DanielForgac</dc:creator>
    <dc:date>2013-04-24T12:09:17Z</dc:date>
    <item>
      <title>No option for string-type descriptor</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/no-option-for-string-type-descriptor/m-p/197241#M1995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't see any possibility to add string descriptor to my network dataset. As it seams, only numeric types of descriptor are available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is create a parameterized restriction using road identificator (which is of string type) as input parameter to avoid specified road in tracing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The restriction evaluator script should be something like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim restrict,param&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restrict = False&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;param = ParameterValueByName("roadIdStringParam") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If (Edge.AttributeValueByName( "roadIdStringDescriptor" ) = param) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;restrict = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;of course, it doesn't work because roadIdStringDescriptor cannot be defined as string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have any suggestion for a workaround? Or am I getting it all wrong? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGis 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 12:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/no-option-for-string-type-descriptor/m-p/197241#M1995</guid>
      <dc:creator>DanielForgac</dc:creator>
      <dc:date>2013-04-24T12:09:17Z</dc:date>
    </item>
  </channel>
</rss>

