I've make this wrong routine for get the coordinates of the first and second vertex of a polyline. Private Sub DirPol(Pol As AcadLWPolyline) Dim PrimoVer As Variant Dim SecondoVer As Variant Set PrimoVer = Pol.Coordinate(0) 'first vertex Set SecondoVer = Pol.Coordinate(1) 'second vertex End Sub I have make an error? thx?