<?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: Trying to identify dangle nodes (cul-de-sacs) in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/trying-to-identify-dangle-nodes-cul-de-sacs/m-p/456110#M4332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can add the network dataset in ArcMap as the first layer and then run the following VBA. It will write to the immediate window in the VBA window, the OID of the 1 valent junctions and the OID of the connected Edge. You can format the output as needed and write to a file. Change it as needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub List_OneValent_Junctions()
On Error GoTo eh
&amp;nbsp; Dim pMxDoc As IMxDocument
&amp;nbsp; Set pMxDoc = ThisDocument
&amp;nbsp; 
&amp;nbsp; Dim pNLayer As INetworkLayer
&amp;nbsp; Set pNLayer = pMxDoc.FocusMap.Layer(0)
&amp;nbsp; 
&amp;nbsp; Dim pND As INetworkDataset
&amp;nbsp; Set pND = pNLayer.NetworkDataset
&amp;nbsp; 
&amp;nbsp; Dim pNQ As INetworkQuery
&amp;nbsp; Set pNQ = pND
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; Dim pEnumNE As IEnumNetworkElement
&amp;nbsp; Set pEnumNE = pNQ.Elements(esriNETJunction)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; Dim pNEdge As INetworkEdge
&amp;nbsp; Set pNEdge = pNQ.CreateNetworkElement(esriNETEdge)
&amp;nbsp; Dim pNEFromJunc As INetworkJunction
&amp;nbsp; Set pNEFromJunc = pNQ.CreateNetworkElement(esriNETJunction)
&amp;nbsp; Dim pNEToJunc As INetworkJunction
&amp;nbsp; Set pNEToJunc = pNQ.CreateNetworkElement(esriNETJunction)
&amp;nbsp; 
&amp;nbsp; Dim pNE As INetworkElement
&amp;nbsp; Set pNE = pEnumNE.Next
&amp;nbsp; Dim pNEJunc As INetworkJunction
&amp;nbsp; Set pNEJunc = pNE
&amp;nbsp; 
&amp;nbsp; Dim val1 As Integer
&amp;nbsp; val1 = 0
&amp;nbsp; 
&amp;nbsp; 'Find 1 valent edges and write out Junction OID and Edge OID
&amp;nbsp; Do Until pNE Is Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp; valency = pNEJunc.EdgeCount
&amp;nbsp;&amp;nbsp;&amp;nbsp; If valency = 1 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pNEJunc.QueryEdge 0, False, pNEdge
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print pNEJunc.OID &amp;amp; ", " &amp;amp; pNEdge.OID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; val1 = val1 + 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pNE = pEnumNE.Next
&amp;nbsp; Loop
&amp;nbsp; 
&amp;nbsp; Debug.Print "Total one valent edges: " &amp;amp; val1
&amp;nbsp; Exit Sub
eh:
&amp;nbsp; MsgBox "Error: " &amp;amp; Err.Description
End Sub
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:19:59 GMT</pubDate>
    <dc:creator>JaySandhu</dc:creator>
    <dc:date>2021-12-11T20:19:59Z</dc:date>
    <item>
      <title>Trying to identify dangle nodes (cul-de-sacs)</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/trying-to-identify-dangle-nodes-cul-de-sacs/m-p/456109#M4331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to Network Analyst and I have built a network from roads data for an entire city. I would like to differentiate between terminal (dangle) nodes and those that are part of an intersection. Specifically, I am trying to determine where cul-de-sacs are in the city and eventually run some analyses on these. However, when I create a network dataset, the nodes seem to be undifferentiated. Ideally, I would like to do this without downloading extensions as I work for a large company and could take time to get approval for downloading something to my machine and I am not familiar with python. Is there an easy way to do this? Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 12:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/trying-to-identify-dangle-nodes-cul-de-sacs/m-p/456109#M4331</guid>
      <dc:creator>HoldenSpaht</dc:creator>
      <dc:date>2012-05-24T12:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to identify dangle nodes (cul-de-sacs)</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/trying-to-identify-dangle-nodes-cul-de-sacs/m-p/456110#M4332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can add the network dataset in ArcMap as the first layer and then run the following VBA. It will write to the immediate window in the VBA window, the OID of the 1 valent junctions and the OID of the connected Edge. You can format the output as needed and write to a file. Change it as needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay Sandhu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub List_OneValent_Junctions()
On Error GoTo eh
&amp;nbsp; Dim pMxDoc As IMxDocument
&amp;nbsp; Set pMxDoc = ThisDocument
&amp;nbsp; 
&amp;nbsp; Dim pNLayer As INetworkLayer
&amp;nbsp; Set pNLayer = pMxDoc.FocusMap.Layer(0)
&amp;nbsp; 
&amp;nbsp; Dim pND As INetworkDataset
&amp;nbsp; Set pND = pNLayer.NetworkDataset
&amp;nbsp; 
&amp;nbsp; Dim pNQ As INetworkQuery
&amp;nbsp; Set pNQ = pND
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; Dim pEnumNE As IEnumNetworkElement
&amp;nbsp; Set pEnumNE = pNQ.Elements(esriNETJunction)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; Dim pNEdge As INetworkEdge
&amp;nbsp; Set pNEdge = pNQ.CreateNetworkElement(esriNETEdge)
&amp;nbsp; Dim pNEFromJunc As INetworkJunction
&amp;nbsp; Set pNEFromJunc = pNQ.CreateNetworkElement(esriNETJunction)
&amp;nbsp; Dim pNEToJunc As INetworkJunction
&amp;nbsp; Set pNEToJunc = pNQ.CreateNetworkElement(esriNETJunction)
&amp;nbsp; 
&amp;nbsp; Dim pNE As INetworkElement
&amp;nbsp; Set pNE = pEnumNE.Next
&amp;nbsp; Dim pNEJunc As INetworkJunction
&amp;nbsp; Set pNEJunc = pNE
&amp;nbsp; 
&amp;nbsp; Dim val1 As Integer
&amp;nbsp; val1 = 0
&amp;nbsp; 
&amp;nbsp; 'Find 1 valent edges and write out Junction OID and Edge OID
&amp;nbsp; Do Until pNE Is Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp; valency = pNEJunc.EdgeCount
&amp;nbsp;&amp;nbsp;&amp;nbsp; If valency = 1 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pNEJunc.QueryEdge 0, False, pNEdge
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print pNEJunc.OID &amp;amp; ", " &amp;amp; pNEdge.OID
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; val1 = val1 + 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pNE = pEnumNE.Next
&amp;nbsp; Loop
&amp;nbsp; 
&amp;nbsp; Debug.Print "Total one valent edges: " &amp;amp; val1
&amp;nbsp; Exit Sub
eh:
&amp;nbsp; MsgBox "Error: " &amp;amp; Err.Description
End Sub
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/trying-to-identify-dangle-nodes-cul-de-sacs/m-p/456110#M4332</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2021-12-11T20:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to identify dangle nodes (cul-de-sacs)</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/trying-to-identify-dangle-nodes-cul-de-sacs/m-p/456111#M4333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the input. Unfortunately, I do not have a VBA license. Does anyone know a non-scripting way to do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 19:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/trying-to-identify-dangle-nodes-cul-de-sacs/m-p/456111#M4333</guid>
      <dc:creator>HoldenSpaht</dc:creator>
      <dc:date>2012-05-24T19:42:56Z</dc:date>
    </item>
  </channel>
</rss>

