' dh42 11/2016' projection point' select 2 lines then run the plugin.'' to convert polyline to line, use explode'' Sub main() Dim ent As Entity Dim match As Boolean = True If (view.SelectedEntities.Length = 2) Then 'only 2 objects selected For Each ent In view.SelectedEntities If Not TypeOf ent Is Line Then 'not a line match = False End If Next ent Else match = False End If If match = False Then Exit Sub 'not the correct number of lines, or not lines 'Ok, 2 lines objects selected 'get the lines in the current selection Dim line1 As Line = CType(view.SelectedEntities(0), Line) Dim line2 As Line = CType(view.SelectedEntities(1), Line) ' creates Line2F from Line Dim l1 As Line2F = New Line2F(line1.Points.Item(0).X, line1.Points.Item(0).Y, _ line1.Points.Item(1).X, line1.Points.Item(1).Y) Dim l2 As Line2F = New Line2F(line2.Points.Item(0).X, line2.Points.Item(0).Y, _ line2.Points.Item(1).X, line2.Points.Item(1).Y) 'get the projection point Dim pt As Point2F = l1.ProjectionIntersect(l1, l2) If Not Double.IsNaN(pt.X) Then 'test for NaN in the x value = no return, = parallel lines Dim pl As PointList = New PointList(pt) Doc.Add(pl) Else App.Log("parallel lines") End If End Sub