Private Sub CommandButton1_Click() rl*O-S/
Form1.Hide P3$eomX'
Dim a() _'u]{X\k{J
Dim txt As String 4q$~3C[
Dim point1 As Variant kNEEu!G
Dim point2 As Variant *Gbhk8}V'
Dim gc As String vJkc/7
Do c?p^!zG
point1 = ThisDrawing.Utility.GetPoint(, vbCrLf & "点的坐标:") {f!/:bM
point2 = ThisDrawing.Utility.TranslateCoordinates(point1, acWorld, acUCS, False) *sho/[~_
If point2(0) = "0" And point2(1) = "0" Then `BPTcL<W
Exit Do I5$P9UE+^9
End If OZ,kz2SF#
n = n + 1 DX>a0-Xj
ReDim Preserve a(1 To 4 * n) 7io["zW
If Check1.Value Then
--$o$EP`
txt = ThisDrawing.Utility.GetString(0, vbCrLf & "点号:") ]rmBM
a(4 * n - 3) = txt R$awg SE
Else d"$8-_K
a(4 * n - 3) = n J~Xv R
End If US6_5>/
)s2] -n}W
If Check2.Value Then THA9OXP
gc = ThisDrawing.Utility.GetString(0, vbCrLf & "点的高程:") !QUY (
a(4 * n) = gc Q=\
Oa(I
Else c}x1-d8
a(4 * n) = 0 G7-BeA8
End If *dzZOe>,
a(4 * n - 2) = point2(0) g|=_@
pL
a(4 * n - 1) = point2(1) 8#I>`z^F
Loop I-7LT?r
CommonDialog1.ShowSave 3P>gDQP
Open CommonDialog1.FileName For Output As #1 0ju1>.p
For i = 1 To n t<%0eu|
a(4 * i - 2) = Format(a(4 * i - 2), "0.000") ]-PzN'5\'
a(4 * i - 1) = Format(a(4 * i - 1), "0.000") +Qs]8*^?;
Print #1, a(4 * i - 3) & "," & a(4 * i - 2) & "," & a(4 * i - 1) & "," & a(4 * i) N!A20Bv
Next 'nJF:+30ZH
Close #1 x^f<G
6z
ajbe7#}
bP,<^zA|X
mgxIxusR
End Sub