Dim pt As Variant Dim n As Integer On Error Resume Next
Open "c:\coordinates.txt" For Append As #1
pt = ThisDrawing.Utility.GetPoint(, "指定第 " & n & " 个点" & vbCrLf)
While Not IsNull(pt)
n = n + 1
Print #1, Format(pt(0), "0.000") & Chr(9) & Format(pt(1), "0.000")
pt = Null pt = ThisDrawing.Utility.GetPoint(, "指定第 " & n & " 个点" & vbCrLf)
Wend
Close #1
|