<?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 Split point results in a zero length polyline - VBA in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438773#M11885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code below splits a line feature class everywhere it intersects with a point feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have run this several times on several different datasets without any problems, but now I am getting the title error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Points are produced by intersecting line feature class 1 with line feature class 2 and I am trying to split line feature class 1 at those points.&amp;nbsp; So by definition, the lines and the points intersect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Briefly, here is how the code works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loop through all the points&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Find the line(s) that intersect the point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loop through these lines&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the point has the same coordinates as the line start point, do nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the point has the same coordinates as the line end point, do nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else split the line at the point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;next line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;next point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;done&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From esri help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The error is produced when trying to select a point that is outside of the starting and ending point of the line segment selected. The zero length polyline means that ArcMap based on the point selected with the split tool can not split the selected line anywhere along that line."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how this error could be produced, when a) the point is not at the start or end point of the line, and b) the point necessarily falls somewhere on the line?&amp;nbsp; Or if the code could be missing any of these situations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank-you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Private Sub SplitLineAtPoint_Click()

Dim pEditor As IEditor
Set pEditor = Application.FindExtensionByName("ESRI Object Editor")

If pEditor.EditState &amp;lt;&amp;gt; esriStateEditing Then
MsgBox ("Start editing your line feature before proceeding...&amp;nbsp; ALSO - Make sure the lines you are editing are in a different workspace than your intersecting points.")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub
End If

Dim pEL As IEditLayers
Set pEL = pEditor

If pEL.CurrentLayer.FeatureClass.ShapeType &amp;lt;&amp;gt; esriGeometryPolyline Then
MsgBox ("Target layer must be a line feature.")
Exit Sub
End If

Dim pMxDoc As IMxDocument
Set pMxDoc = ThisDocument

Dim pMap As IMap
Set pMap = pMxDoc.FocusMap

Dim pPointL As IFeatureLayer
Set pPointL = pMap.Layer(0) 'point layer to split lines with

Dim pLineL As IFeatureLayer
Set pLineL = pMap.Layer(1) 'line layer to be split

Dim pLineFC As IFeatureClass
Set pLineFC = pLineL.FeatureClass

Dim pLineGDS As IGeoDataset
Set pLineGDS = pLineFC

Dim pPointFC As IFeatureClass
Set pPointFC = pPointL.FeatureClass 'point feature class to split lines with

Dim pPointCursor As IFeatureCursor
Set pPointCursor = pPointFC.Search(Nothing, False)

Dim pPointF As IFeature
Set pPointF = pPointCursor.NextFeature 'the point feature to split lines with

Dim pointCount As Integer
pointCount = 1
Dim pointFeatureCount As Integer
pointFeatureCount = pPointFC.FeatureCount(Nothing)

Do Until pPointF Is Nothing
Debug.Print pointCount
Dim pPoint As IPoint
Set pPoint = pPointF.Shape
Dim pSF As ISpatialFilter
Set pSF = New SpatialFilter

With pSF
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set .Geometry = pPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp; .GeometryField = "Shape"
&amp;nbsp;&amp;nbsp;&amp;nbsp; .SpatialRel = esriSpatialRelIntersects
End With

Dim pLineCursor As IFeatureCursor
Set pLineCursor = pLineFC.Search(pSF, False)

Dim pLineF As IFeature
Set pLineF = pLineCursor.NextFeature

Do Until pLineF Is Nothing
Dim pPolyCurve As IPolycurve
Set pPolyCurve = pLineF.Shape

Dim pToPoint As IPoint
Set pToPoint = pPolyCurve.ToPoint 'end point of the line

Dim pFromPoint As IPoint
Set pFromPoint = pPolyCurve.FromPoint&amp;nbsp; 'start point of the line
'Debug.Print Round(pToPoint.X, 7), Round(pToPoint.Y, 7)
'Debug.Print Round(pFromPoint.X, 7), Round(pFromPoint.Y, 7)
'Debug.Print Round(pPoint.X, 7), Round(pPoint.Y, 7)

'Show something in status bar
Dim pStatus As IStatusBar
Set pStatus = Application.StatusBar
pStatus.Message(0) = "Splitting at point:" &amp;amp; pointCount &amp;amp; "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;amp; ((pointCount / pointFeatureCount) * 100) &amp;amp; "% done"
If (Round(pFromPoint.X, 6) = Round(pPoint.X, 6) And Round(pFromPoint.Y, 6) = Round(pPoint.Y, 6)) Then&amp;nbsp; 'do nothing
ElseIf (Round(pToPoint.X, 6) = Round(pPoint.X, 6) And Round(pToPoint.Y, 6) = Round(pPoint.Y, 6)) Then&amp;nbsp; 'do nothing
Else
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pFeatureEdit As IFeatureEdit
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pFeatureEdit = pLineF
&amp;nbsp;&amp;nbsp;&amp;nbsp; pFeatureEdit.Split pPointF.Shape
End If
Set pLineF = pLineCursor.NextFeature
Loop
pointCount = pointCount + 1
Set pPointF = pPointCursor.NextFeature
Loop

MsgBox ("Lines have been split at intersecting points..." &amp;amp; vbNewLine &amp;amp; vbNewLine &amp;amp; "SAVE Your EDITS before closing..")

End Sub&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Feb 2011 19:39:15 GMT</pubDate>
    <dc:creator>LornaMurison</dc:creator>
    <dc:date>2011-02-24T19:39:15Z</dc:date>
    <item>
      <title>Split point results in a zero length polyline - VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438773#M11885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code below splits a line feature class everywhere it intersects with a point feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have run this several times on several different datasets without any problems, but now I am getting the title error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Points are produced by intersecting line feature class 1 with line feature class 2 and I am trying to split line feature class 1 at those points.&amp;nbsp; So by definition, the lines and the points intersect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Briefly, here is how the code works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loop through all the points&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Find the line(s) that intersect the point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loop through these lines&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the point has the same coordinates as the line start point, do nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the point has the same coordinates as the line end point, do nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else split the line at the point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;next line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;next point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;done&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From esri help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The error is produced when trying to select a point that is outside of the starting and ending point of the line segment selected. The zero length polyline means that ArcMap based on the point selected with the split tool can not split the selected line anywhere along that line."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how this error could be produced, when a) the point is not at the start or end point of the line, and b) the point necessarily falls somewhere on the line?&amp;nbsp; Or if the code could be missing any of these situations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank-you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Private Sub SplitLineAtPoint_Click()

Dim pEditor As IEditor
Set pEditor = Application.FindExtensionByName("ESRI Object Editor")

If pEditor.EditState &amp;lt;&amp;gt; esriStateEditing Then
MsgBox ("Start editing your line feature before proceeding...&amp;nbsp; ALSO - Make sure the lines you are editing are in a different workspace than your intersecting points.")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub
End If

Dim pEL As IEditLayers
Set pEL = pEditor

If pEL.CurrentLayer.FeatureClass.ShapeType &amp;lt;&amp;gt; esriGeometryPolyline Then
MsgBox ("Target layer must be a line feature.")
Exit Sub
End If

Dim pMxDoc As IMxDocument
Set pMxDoc = ThisDocument

Dim pMap As IMap
Set pMap = pMxDoc.FocusMap

Dim pPointL As IFeatureLayer
Set pPointL = pMap.Layer(0) 'point layer to split lines with

Dim pLineL As IFeatureLayer
Set pLineL = pMap.Layer(1) 'line layer to be split

Dim pLineFC As IFeatureClass
Set pLineFC = pLineL.FeatureClass

Dim pLineGDS As IGeoDataset
Set pLineGDS = pLineFC

Dim pPointFC As IFeatureClass
Set pPointFC = pPointL.FeatureClass 'point feature class to split lines with

Dim pPointCursor As IFeatureCursor
Set pPointCursor = pPointFC.Search(Nothing, False)

Dim pPointF As IFeature
Set pPointF = pPointCursor.NextFeature 'the point feature to split lines with

Dim pointCount As Integer
pointCount = 1
Dim pointFeatureCount As Integer
pointFeatureCount = pPointFC.FeatureCount(Nothing)

Do Until pPointF Is Nothing
Debug.Print pointCount
Dim pPoint As IPoint
Set pPoint = pPointF.Shape
Dim pSF As ISpatialFilter
Set pSF = New SpatialFilter

With pSF
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set .Geometry = pPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp; .GeometryField = "Shape"
&amp;nbsp;&amp;nbsp;&amp;nbsp; .SpatialRel = esriSpatialRelIntersects
End With

Dim pLineCursor As IFeatureCursor
Set pLineCursor = pLineFC.Search(pSF, False)

Dim pLineF As IFeature
Set pLineF = pLineCursor.NextFeature

Do Until pLineF Is Nothing
Dim pPolyCurve As IPolycurve
Set pPolyCurve = pLineF.Shape

Dim pToPoint As IPoint
Set pToPoint = pPolyCurve.ToPoint 'end point of the line

Dim pFromPoint As IPoint
Set pFromPoint = pPolyCurve.FromPoint&amp;nbsp; 'start point of the line
'Debug.Print Round(pToPoint.X, 7), Round(pToPoint.Y, 7)
'Debug.Print Round(pFromPoint.X, 7), Round(pFromPoint.Y, 7)
'Debug.Print Round(pPoint.X, 7), Round(pPoint.Y, 7)

'Show something in status bar
Dim pStatus As IStatusBar
Set pStatus = Application.StatusBar
pStatus.Message(0) = "Splitting at point:" &amp;amp; pointCount &amp;amp; "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;amp; ((pointCount / pointFeatureCount) * 100) &amp;amp; "% done"
If (Round(pFromPoint.X, 6) = Round(pPoint.X, 6) And Round(pFromPoint.Y, 6) = Round(pPoint.Y, 6)) Then&amp;nbsp; 'do nothing
ElseIf (Round(pToPoint.X, 6) = Round(pPoint.X, 6) And Round(pToPoint.Y, 6) = Round(pPoint.Y, 6)) Then&amp;nbsp; 'do nothing
Else
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pFeatureEdit As IFeatureEdit
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pFeatureEdit = pLineF
&amp;nbsp;&amp;nbsp;&amp;nbsp; pFeatureEdit.Split pPointF.Shape
End If
Set pLineF = pLineCursor.NextFeature
Loop
pointCount = pointCount + 1
Set pPointF = pPointCursor.NextFeature
Loop

MsgBox ("Lines have been split at intersecting points..." &amp;amp; vbNewLine &amp;amp; vbNewLine &amp;amp; "SAVE Your EDITS before closing..")

End Sub&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 19:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438773#M11885</guid>
      <dc:creator>LornaMurison</dc:creator>
      <dc:date>2011-02-24T19:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Split point results in a zero length polyline - VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438774#M11886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've used this script before.&amp;nbsp; My only guess is that there is an instance of where one or more of your points is trying to split the line at the exact location of where one of the line vertices is located.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first thought for you would be to grab a subset of the dataset and run it through the script (maybe 1/4 of the lines).&amp;nbsp; If it works, continue with the other subsets until you generate the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Post back the results and any errors you receive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-J Graham&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. Another post a while back had mentioned that they got this error when the two feature classes had different projections.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 13:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438774#M11886</guid>
      <dc:creator>JamesGraham</dc:creator>
      <dc:date>2011-04-04T13:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Split point results in a zero length polyline - VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438775#M11887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi James, thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I must have posted this somewhere else as well because I remember someone helping me to find a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that even though the points were created from an intersection of the lines, they did not always fall on the line.&amp;nbsp; My solution was to use a proximity operator to create a point object on the line closest to where the original point is.&amp;nbsp; I then used that point to split the line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the edited portion of the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Do Until pLineF Is Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pPolyCurve As IPolycurve
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pPolyCurve = pLineF.Shape

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pToPoint As IPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pToPoint = pPolyCurve.ToPoint 'end point of the line

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pFromPoint As IPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pFromPoint = pPolyCurve.FromPoint&amp;nbsp; 'start point of the line
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Find the point on the line closest to the input point
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pProxOp As IProximityOperator
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pProxOp = pPolyCurve
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pProxPoint As IPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pProxPoint = pProxOp.ReturnNearestPoint(pPoint, esriNoExtension)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dblDistTo As Double
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dblDistTo = Sqr(Abs(((Round(pProxPoint.X, 3) - Round(pToPoint.X, 3)) ^ 2) + ((Round(pProxPoint.Y, 3) - Round(pToPoint.Y, 3)) ^ 2)))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim dblDistFrom As Double
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dblDistFrom = Sqr(Abs(((Round(pProxPoint.X, 3) - Round(pFromPoint.X, 3)) ^ 2) + ((Round(pProxPoint.Y, 3) - Round(pFromPoint.Y, 3)) ^ 2)))

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Show something in status bar
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pStatus As IStatusBar
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pStatus = Application.StatusBar
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pStatus.Message(0) = "Splitting at point:" &amp;amp; pointCount &amp;amp; "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " &amp;amp; Int(((pointCount / pointFeatureCount) * 100) + 0.5) &amp;amp; "% done"

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (Round(pFromPoint.X, 6) = Round(pProxPoint.X, 6) And Round(pFromPoint.Y, 6) = Round(pProxPoint.Y, 6)) Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf (Round(pToPoint.X, 6) = Round(pProxPoint.X, 6) And Round(pToPoint.Y, 6) = Round(pProxPoint.Y, 6)) Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf dblDistTo &amp;lt;= 0.0001 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ElseIf dblDistFrom &amp;lt;= 0.0001 Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pFeatureEdit As IFeatureEdit
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pFeatureEdit = pLineF
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFeatureEdit.Split pProxPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print "split at point " &amp;amp; pointCount
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pLineF = pLineCursor.NextFeature
&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop
&amp;nbsp;&amp;nbsp;&amp;nbsp; pointCount = pointCount + 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pPointF = pPointCursor.NextFeature
Loop
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438775#M11887</guid>
      <dc:creator>LornaMurison</dc:creator>
      <dc:date>2021-12-11T19:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split point results in a zero length polyline - VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438776#M11888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, that's good stuff.&amp;nbsp; Glad to hear you got your answer and for posting the corrected code! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J Graham&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 13:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/split-point-results-in-a-zero-length-polyline-vba/m-p/438776#M11888</guid>
      <dc:creator>JamesGraham</dc:creator>
      <dc:date>2011-04-04T13:58:20Z</dc:date>
    </item>
  </channel>
</rss>

