Private Sub CommandButton1_Click() w,_LC)9
Form1.Hide O[z6W.
Dim a() :_`Yrx5
Dim txt As String [;o>q;75Jz
Dim point1 As Variant fwh/#V-i
Dim point2 As Variant sbFIKq]
Dim gc As String m\E=I5*/
Do vNdW.V}
point1 = ThisDrawing.Utility.GetPoint(, vbCrLf & "点的坐标:") `cIeqp
point2 = ThisDrawing.Utility.TranslateCoordinates(point1, acWorld, acUCS, False) P>^$X
If point2(0) = "0" And point2(1) = "0" Then 3+q-yP#X
Exit Do 0QxBC7`qp
End If D&pX0
n = n + 1 &}K%F)S
ReDim Preserve a(1 To 4 * n) *SlWA)9Y
If Check1.Value Then UMT}2d%
txt = ThisDrawing.Utility.GetString(0, vbCrLf & "点号:") Z`|\%D%
a(4 * n - 3) = txt B\l 0kiNT
Else InRcIQT
a(4 * n - 3) = n |;^$IZSsz
End If L3 KJ~LI
lR mVeq:
If Check2.Value Then MBnxF^c&P
gc = ThisDrawing.Utility.GetString(0, vbCrLf & "点的高程:") [nlq(DGJhp
a(4 * n) = gc /LtbmV
Else K@/dQV%Z
a(4 * n) = 0 hZ.](rD
End If )-Z*/uF^
a(4 * n - 2) = point2(0)
kKY,&Fn-
a(4 * n - 1) = point2(1) _H-Fm$Q
Loop LabI5+g
CommonDialog1.ShowSave PO^#G@
Open CommonDialog1.FileName For Output As #1 k~F,n
For i = 1 To n .F[5{XV
a(4 * i - 2) = Format(a(4 * i - 2), "0.000") cr?ZXu_
a(4 * i - 1) = Format(a(4 * i - 1), "0.000") d/awQXKe7
Print #1, a(4 * i - 3) & "," & a(4 * i - 2) & "," & a(4 * i - 1) & "," & a(4 * i) edZBQmx+#
Next 2izBB,# "
Close #1 %(H'
j@D[
M@p<L
VP
]24]id
<q Q@OUI
End Sub