Private Sub CommandButton1_Click() 6Y#-5oEu/
Form1.Hide 2>s@2=Aq
Dim a() myp}DI(
Dim txt As String n&?]GyQ
Dim point1 As Variant ` ]*KrY
Dim point2 As Variant 8}Pd- .se
Dim gc As String bL=32YS
Do 8[\(*E}d!X
point1 = ThisDrawing.Utility.GetPoint(, vbCrLf & "点的坐标:") _$OhV#LKG
point2 = ThisDrawing.Utility.TranslateCoordinates(point1, acWorld, acUCS, False) PB
!\r}Q
If point2(0) = "0" And point2(1) = "0" Then "HWl7c3q
Exit Do 6B4s6
End If ~YxLDo'.t
n = n + 1 4KB)UPW
ReDim Preserve a(1 To 4 * n) )N{Qpbh
If Check1.Value Then 0:(`t~
txt = ThisDrawing.Utility.GetString(0, vbCrLf & "点号:") >+v)^7c
a(4 * n - 3) = txt 05".;(
Else {5+t\~q$
a(4 * n - 3) = n aX=
End If T-=sC=sS,
s[:e '#^
If Check2.Value Then A[lkGQtS4
gc = ThisDrawing.Utility.GetString(0, vbCrLf & "点的高程:") *Z7W'-
a(4 * n) = gc Im{I23.2
Else xbex6i"ZE
a(4 * n) = 0 OQ<|XdI$
End If V@jR8zv|_
a(4 * n - 2) = point2(0) w <
p
a(4 * n - 1) = point2(1) MVV9[f
Loop iMnp `:*
CommonDialog1.ShowSave 6Lw34R
Open CommonDialog1.FileName For Output As #1 9:^SnHAa
For i = 1 To n
R1'bB"$
a(4 * i - 2) = Format(a(4 * i - 2), "0.000") /H+j6*}r
a(4 * i - 1) = Format(a(4 * i - 1), "0.000") ,HXY|fYr
Print #1, a(4 * i - 3) & "," & a(4 * i - 2) & "," & a(4 * i - 1) & "," & a(4 * i) IfoeHAWX
Next
=@b/Gl
Close #1 1F'j. 1
<J=9,tv<
bet?5Dk
D@tuu]%p
End Sub