Private Sub CommandButton1_Click() Dim user1 As AcadPolyline Dim userp As AcadPoint On Error Resume Next CommonDialog1.ShowOpen Open CommonDialog1.FileName For Input As #1 Do While Not EOF(1) Line Input #1, inputdata a = inputdata ' a = Split(inputdata, ",") Set userp = ThisDrawing.ModelSpace.AddPoint(a) Set user1 = ThisDrawing.ModelSpace.AddPolyline(a) Loop Close #1 Me.Hide ThisDrawing.Application.ZoomExtents end sub 请问为什么不能实现将文本文件里的坐标通过Polyline画到当前文档中去呢! 请高手一定指教,不胜感激! 以下是我文本文件里的数据! 611366,3537816 611344,3537965 611031,3537822 611084,3537930 611124,3538024 611047,3537989 611019,3537909