<?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: Adding parameters to network attribute in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-parameters-to-network-attribute/m-p/613167#M5888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, Murali!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Network parameters are created as &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/NetworkAttributeParameterClass_Class/002500000n09000000/"&gt;NetworkAttributeParameter&lt;/A&gt;&lt;SPAN&gt; objects and accessed via &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/INetworkAttributeParameter_Interface/002500000516000000/"&gt;INetworkAttributeParameter&lt;/A&gt;&lt;SPAN&gt;. You will need to set up an &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IArray_Interface/004200000086000000/"&gt;IArray&lt;/A&gt;&lt;SPAN&gt; of parameters for the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/INetworkAttribute3_Interface/002500000514000000/"&gt;network attribute&lt;/A&gt;&lt;SPAN&gt; that you want to parameterize. Then you apply the IArray to the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Parameters_Property/002500000511000000/"&gt;parameters setter&lt;/A&gt;&lt;SPAN&gt; of your attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/VarType_Property/00250000051m000000/"&gt;VarType&lt;/A&gt;&lt;SPAN&gt; property of the parameter, here is a list of the int values you should apply for a given parameter type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_EMPTY = 0, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// uninitialized&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_NULL = 1, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// null&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_I2 = 2, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// short&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_I4 = 3, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// int&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_R4 = 4, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// float&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_R8 = 5, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// double&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_DATE = 7, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// DateTime&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_BSTR = 8, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// string&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_BOOL = 11, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// boolean&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_UNKNOWN = 13, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// object&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_ARRAY = 0x2000 &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// array&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If something here is unclear or doesn't work, please ask more questions. Thanks and good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 14:09:32 GMT</pubDate>
    <dc:creator>PatrickStevens</dc:creator>
    <dc:date>2012-05-23T14:09:32Z</dc:date>
    <item>
      <title>Adding parameters to network attribute</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-parameters-to-network-attribute/m-p/613166#M5887</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;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to automate create/build network dataset using SDK in C#. I followed the sample code : "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000000w7000000.htm" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/0001000000w7000000.htm&lt;/A&gt;&lt;SPAN&gt;" and able to create network dataset with simple attributes like oneway, meters and minutes. Now, my requirement is to add parameters to a network attribute say "xyz". I am not able to find documentation on this. It would be great if some example can be provided so that I can follow the same. Please provide some help on this. Thanks in advance..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 05:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-parameters-to-network-attribute/m-p/613166#M5887</guid>
      <dc:creator>MuraliChoudari</dc:creator>
      <dc:date>2012-05-23T05:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding parameters to network attribute</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-parameters-to-network-attribute/m-p/613167#M5888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, Murali!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Network parameters are created as &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/NetworkAttributeParameterClass_Class/002500000n09000000/"&gt;NetworkAttributeParameter&lt;/A&gt;&lt;SPAN&gt; objects and accessed via &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/INetworkAttributeParameter_Interface/002500000516000000/"&gt;INetworkAttributeParameter&lt;/A&gt;&lt;SPAN&gt;. You will need to set up an &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IArray_Interface/004200000086000000/"&gt;IArray&lt;/A&gt;&lt;SPAN&gt; of parameters for the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/INetworkAttribute3_Interface/002500000514000000/"&gt;network attribute&lt;/A&gt;&lt;SPAN&gt; that you want to parameterize. Then you apply the IArray to the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Parameters_Property/002500000511000000/"&gt;parameters setter&lt;/A&gt;&lt;SPAN&gt; of your attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/VarType_Property/00250000051m000000/"&gt;VarType&lt;/A&gt;&lt;SPAN&gt; property of the parameter, here is a list of the int values you should apply for a given parameter type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_EMPTY = 0, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// uninitialized&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_NULL = 1, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// null&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_I2 = 2, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// short&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_I4 = 3, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// int&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_R4 = 4, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// float&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_R8 = 5, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// double&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_DATE = 7, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// DateTime&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_BSTR = 8, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// string&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_BOOL = 11, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// boolean&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_UNKNOWN = 13, &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// object&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VT_ARRAY = 0x2000 &lt;/SPAN&gt;&lt;SPAN style="color:green;"&gt;// array&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If something here is unclear or doesn't work, please ask more questions. Thanks and good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 14:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/adding-parameters-to-network-attribute/m-p/613167#M5888</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2012-05-23T14:09:32Z</dc:date>
    </item>
  </channel>
</rss>

