Sub test()
Dim ss As AcadSelectionSet
Dim pnt(2) As Double
pnt(0) = 10
Set ss = ThisDrawing.ActiveSelectionSet
ss.Clear
Dim ft(6) As Integer, fd(6)
ft(0) = 0: fd(0) = "Line"
ft(1) = -4: fd(1) = ""
ss.Select acSelectionSetAll, , , ft, fd
MsgBox ss.Count
End Sub
选择起点和终点横坐标为10的竖线