AddVertex method example
Sub Example_AddVertex()
    
    
    Dim plineObj As AcadLWPolyline
    Dim MyPoints(0 To 7) As Double
    
    MyPoints(0) = 1: MyPoints(1) = 1
    MyPoints(2) = 3: MyPoints(3) = 1
    MyPoints(4) = 3: MyPoints(5) = 4
    MyPoints(6) = 6: MyPoints(7) = 4
    
    Set plineObj = ThisDrawing.ModelSpace.AddLightWeightPolyline(MyPoints)
    ZoomAll
    MsgBox "Add a vertex to the end of the polyline.", , "AddVertex Example"
    
    Dim newVertex(0 To 1) As Double
    newVertex(0) = 6: newVertex(1) = 1
    
    plineObj.AddVertex 4, newVertex
    plineObj.Update
    MsgBox "Vertex added.", , "AddVertex Example"
End Sub
| ©  Menhirs NV. All rights reserved. |