<?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 Network Analyst - OD Cost Matrix Help in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661765#M6362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm somewhat new using the Network Analyst extension and running into a problem I can't figure out how to solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I built a network dataset from a street centerlines layer.&amp;nbsp; What I want to do is, using the junctions layer (nodes at the intersections of the streets), create a table that gives the distance between the origin node and the closest other nodes in each direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The O-D Cost Matrix tool seemed like the way to go, but the problem is it gives me distances between the origin node and all subsequent nodes along the path within the specified search tolerance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want is only the first node along each path from the origin node.&amp;nbsp; I attached a picture to try and explain this better.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions or help would be EXTREMELY appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2011 17:12:48 GMT</pubDate>
    <dc:creator>JoshuaGelman</dc:creator>
    <dc:date>2011-05-13T17:12:48Z</dc:date>
    <item>
      <title>Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661765#M6362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm somewhat new using the Network Analyst extension and running into a problem I can't figure out how to solve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I built a network dataset from a street centerlines layer.&amp;nbsp; What I want to do is, using the junctions layer (nodes at the intersections of the streets), create a table that gives the distance between the origin node and the closest other nodes in each direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The O-D Cost Matrix tool seemed like the way to go, but the problem is it gives me distances between the origin node and all subsequent nodes along the path within the specified search tolerance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want is only the first node along each path from the origin node.&amp;nbsp; I attached a picture to try and explain this better.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions or help would be EXTREMELY appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 17:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661765#M6362</guid>
      <dc:creator>JoshuaGelman</dc:creator>
      <dc:date>2011-05-13T17:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661766#M6363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Josh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need for each junction is simply the adjacent junctions and cost to them. You do not need to use any solver (shortest path, OD, etc) to do this. You can simply add the network dataset to ArcMap and then use the VBA below. This VBA lists out the adjacent junctions to each junction in the network and the cost (based on an attribute called "minutes") to get to that junction. You can customize it as needed. For example, change the EID to OID and/or change the cost attribute you need to list out. Currently it is set to show the results in the immediate window of VBA but you can customize it to write to a file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Sub List_Adjacent_Junctions()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On Error GoTo eh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pMxDoc As IMxDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pMxDoc = ThisDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNLayer As INetworkLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNLayer = pMxDoc.FocusMap.Layer(0) 'Assume the Network dataset is first layer in TOC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pND As INetworkDataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pND = pNLayer.NetworkDataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNQ As INetworkQuery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNQ = pND&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pEnumNE As IEnumNetworkElement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pEnumNE = pNQ.Elements(esriNETJunction)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNEdge As INetworkEdge&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNEdge = pNQ.CreateNetworkElement(esriNETEdge)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNEFromJunc As INetworkJunction&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNEFromJunc = pNQ.CreateNetworkElement(esriNETJunction)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNEToJunc As INetworkJunction&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNEToJunc = pNQ.CreateNetworkElement(esriNETJunction)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNE As INetworkElement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNE = pEnumNE.Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pNEJunc As INetworkJunction&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pNEJunc = pNE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim i As Integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Do Until pNE Is Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print "Junction: " &amp;amp; pNEJunc.EID &amp;amp; " is adjacent to: " &amp;amp; pNEJunc.EdgeCount &amp;amp; " junctions."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 To pNEJunc.EdgeCount - 1&amp;nbsp; 'For each connected edge...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pNEJunc.QueryEdge i, True, pNEdge&amp;nbsp;&amp;nbsp; 'Get that connected edge&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pNEdge.QueryJunctions pNEFromJunc, pNEToJunc&amp;nbsp; 'Get To junction of current edge&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print " Adjacent Junction: " &amp;amp; pNEToJunc.EID &amp;amp; " Cost = " &amp;amp; pNEdge.AttributeValueByName("minutes")&amp;nbsp; 'List the adjacency and cost to it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pNE = pEnumNE.Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Loop&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Exit Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eh:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MsgBox "Error: " &amp;amp; Err.Description&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 19:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661766#M6363</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-05-13T19:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661767#M6364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I just need to wait for my VBA Authorization File to try it since I'm running Arc10.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 19:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661767#M6364</guid>
      <dc:creator>JoshuaGelman</dc:creator>
      <dc:date>2011-05-13T19:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661768#M6365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems to work!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only odd thing is I'm getting some records of adjacent nodes that, when viewed on the map, don't appear to be connected at all with the origin nodes.&amp;nbsp; This may be an issue with the network dataset though because everything looks fine with the code.&amp;nbsp; Perhaps dissolving the network will help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, the VBA code seems to work and I modified it to output to a text file.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 21:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661768#M6365</guid>
      <dc:creator>JoshuaGelman</dc:creator>
      <dc:date>2011-05-13T21:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661769#M6366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to know you have it working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as the non-adjacent junction problems, I doubt that dissolve will fix any connectivity issues. You may look at the junctions that are not adjacent and also look at using the Network Identify tool (second tool from right on the NA toolbar) to click on these junctions and see what is adjacent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 21:32:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661769#M6366</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-05-13T21:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661770#M6367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm...this is probably something silly I'm just overlooking.&amp;nbsp; Maybe something to do with the Object ID's of the Junctions layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is a ZIP of the output file using the VBA code you sent.&amp;nbsp; Also at (&lt;/SPAN&gt;&lt;A href="http://www.wxalert.info/work/streets.zip"&gt;http://www.wxalert.info/work/streets.zip&lt;/A&gt;&lt;SPAN&gt;) is a ZIP file of my Junctions layer and the Street Centerlines layer I'm using for the Network Dataset.&amp;nbsp; The file size was a bit too large to upload here (~ 3.5 MB).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an example...if you open the CSV file (output) you can see that Node #3 is adjacent to Node #1310, but if you select ObjectIDs #3 and #1310 from the Junctions layer, they're not even close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, I'm probably just missing something silly here, but any guidance would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2011 03:07:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661770#M6367</guid>
      <dc:creator>JoshuaGelman</dc:creator>
      <dc:date>2011-05-14T03:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661771#M6368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am pretty sure the issue is the VBA code gets EIDs and what I need are the OIDs from the junctions layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just changed .EID to .OID in the code and it seems to have worked.&amp;nbsp; Is that correct?&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;Edit: This seems to be working, so unless I'm missing something, changed EID to OID in the code seemed to work.&amp;nbsp; But if anyone thinks I'm missing something, please let me know.&amp;nbsp; Thanks again for the help Jay!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2011 18:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661771#M6368</guid>
      <dc:creator>JoshuaGelman</dc:creator>
      <dc:date>2011-05-15T18:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661772#M6369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did say in my original post to "For example, change the EID to OID "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So as long as that is giving you the right results, it should be fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 15:53:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661772#M6369</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-05-16T15:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661773#M6370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!&amp;nbsp; I didn't realize that's what you meant at the time.&amp;nbsp; I just didn't expect it to be that simple.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 19:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661773#M6370</guid>
      <dc:creator>JoshuaGelman</dc:creator>
      <dc:date>2011-05-16T19:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661774#M6371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is very important for me to do what you mentioned in this thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed the steps listed to get the distance between junctions but i haven´t achieved good results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.- Added the Network Dataset to ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.- The Network Dataset is the first layer in TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.- Added the VBA code to VBA Editor, i changed the EID to OID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.- Run the VBA and nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some doubts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.- Where it is supossed the results should be displayed ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.- The results are a new table ? a new attibute ? in what layer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you can help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 15:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661774#M6371</guid>
      <dc:creator>AlejandroMata</dc:creator>
      <dc:date>2011-06-06T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661775#M6372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That VBA uses "Debug.Print" and the output will show in the "Immediate" window. You may have to make that visible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do that in the View drop down menu or click on Ctrl-G to make it visible. The best way is to change the debug.print to a Print statement that will write to a file on disk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 17:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661775#M6372</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2011-06-06T17:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - OD Cost Matrix Help</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661776#M6373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That VBA uses "Debug.Print" and the output will show in the "Immediate" window. You may have to make that visible.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jay !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You're all right, i didn´t have open "immediate" window, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote all the junctions to a file, but is there a way to relation txt file to Network Dataset Layer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, i would like to have in a shp file, all the junctions with their adjacent junctios and times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 18:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-od-cost-matrix-help/m-p/661776#M6373</guid>
      <dc:creator>AlejandroMata</dc:creator>
      <dc:date>2011-06-09T18:03:59Z</dc:date>
    </item>
  </channel>
</rss>

