Private Sub CommandButton1_Click() P!\hnm)%4
Form1.Hide AF#_nK)@
Dim a() i^%-aBZ
Dim txt As String oXc/#{NC
Dim point1 As Variant EnscDtf(
Dim point2 As Variant GfsBQY/
Dim gc As String Md9l+[@
Do H/i<_L P
point1 = ThisDrawing.Utility.GetPoint(, vbCrLf & "点的坐标:") 0M!0JJy#*
point2 = ThisDrawing.Utility.TranslateCoordinates(point1, acWorld, acUCS, False) wkT;a&_
If point2(0) = "0" And point2(1) = "0" Then 4: sl(r
Exit Do r=csi
End If \y*j4 0
n = n + 1 ;/Q6i
ReDim Preserve a(1 To 4 * n) 5-p.MGso
If Check1.Value Then J/S{FxNe]
txt = ThisDrawing.Utility.GetString(0, vbCrLf & "点号:") R<&FhT]
a(4 * n - 3) = txt atnQC
Else S[U/qO)m
a(4 * n - 3) = n )Xno|$b5Eo
End If xURw,
fNxw&ke8&
If Check2.Value Then 3_J>y
gc = ThisDrawing.Utility.GetString(0, vbCrLf & "点的高程:") "|4jPza
a(4 * n) = gc 8IWwjyRr
Else P3$,ca'
a(4 * n) = 0 p37|zX
End If qz:]-A
a(4 * n - 2) = point2(0) xKW"X
a(4 * n - 1) = point2(1) uYTCd ZQh
Loop ]31$KBC
CommonDialog1.ShowSave t{ H1u
Open CommonDialog1.FileName For Output As #1 Yq0# #__
For i = 1 To n 4$i} Xk#3
a(4 * i - 2) = Format(a(4 * i - 2), "0.000") u{+!&
2}k
a(4 * i - 1) = Format(a(4 * i - 1), "0.000") WD;)VsP
Print #1, a(4 * i - 3) & "," & a(4 * i - 2) & "," & a(4 * i - 1) & "," & a(4 * i) DyX0xx^
Next G;2[
Close #1 Qu}N:P9l?X
_?Ckq
Doj(.wm~
t&pGQ
End Sub