Hi, I’ve a problem. In my drawing I have a number n of lines. I want t oconvert them into LWPolylines. I tried a meythod: Public Sub sellinesandconvert()   Dim sset As AcadSelectionSet   Dim objline As AcadLine   Dim lenght As Double   Dim objpoly As AcadLWPolyline   Dim vertex(0 To 1) As Double   Dim points(0 To 3) As Double lenght = 0   Set sset = ThisDrawing.SelectionSets.Add("TEST")   sset.SelectOnScreen   Set objline = sset.Item(0)   If objline.Delta(0) = 0 Then     lenght = lenght + Abs(objline.Delta(1))   ElseIf objline.Delta(1) = 0 Then     lenght = lenght + Abs(objline.Delta(0))   End If   points(0) = objline.StartPoint(0)   points(1) = objline.StartPoint(1)   points(2) = objline.EndPoint(0)   points(3) = objline.EndPoint(1)   Set objpoly = ThisDrawing.ModelSpace.AddLightWeightPolyline(points)   'Delete line   objline.Delete   objpoly.Closed = False    For i = 1 To sset.Count - 1     Set objline = sset.Item(i)     If objline.Delta(0) = 0 Then       lenght = lenght + Abs(objline.Delta(1))     ElseIf objline.Delta(1) = 0 Then       lenght = lenght + Abs(objline.Delta(0))     End If     vertex(0) = objline.EndPoint(0)     vertex(1) = objline.EndPoint(1)     objpoly.AddVertex i + 1, vertex     'Delete line     linea.Delete   Next   MsgBox "lenght : " & lenghtofpolyline(objpoly), vbOKOnly   'Delete SelectionSet   ThisDrawing.SelectionSets.Item("prova").Delete End Sub This code has a very big problem: I had to select lines in AutoCAD in order. I can’t use the selection window (as more common AutoCAD commands). How can I resolve this? Does anybody has an idea? Thank you very much. Diego Alejandro Talledo