Private Sub CommandButton1_Click() C8FB:JNJV
Form1.Hide Y0eE-5F,
Dim a() PkI:*\R
Dim txt As String 45hF`b>%,
Dim point1 As Variant %HrAzM.QBF
Dim point2 As Variant {G?N E
Dim gc As String g}@OUG"D
Do w$JvB5O
point1 = ThisDrawing.Utility.GetPoint(, vbCrLf & "点的坐标:") N('&jHF
point2 = ThisDrawing.Utility.TranslateCoordinates(point1, acWorld, acUCS, False) >EY3/Go>
If point2(0) = "0" And point2(1) = "0" Then ;b-XWK=
Exit Do ]_N|L|]M
End If cnTaJ/o
n = n + 1 oudxm[/U
ReDim Preserve a(1 To 4 * n) @)J+,tg/7
If Check1.Value Then ~69&6C1Ch
txt = ThisDrawing.Utility.GetString(0, vbCrLf & "点号:") |sJSN.8
a(4 * n - 3) = txt &b:1I7Cp*
Else bhniB@<
a(4 * n - 3) = n '],J$ge
End If SdD6 ~LS
]+X@
7
If Check2.Value Then a+n0|CvF
gc = ThisDrawing.Utility.GetString(0, vbCrLf & "点的高程:") Gz.|]:1
a(4 * n) = gc Hh+ 2mkg
Else X&kp;W
a(4 * n) = 0 S]+:{9d
End If O%bEB g
a(4 * n - 2) = point2(0) >y"+ -7V)
a(4 * n - 1) = point2(1) .9wk@C(Eh_
Loop h$2</J"
CommonDialog1.ShowSave I_]^ .o1q
Open CommonDialog1.FileName For Output As #1 %7|9sQ:
For i = 1 To n @;"|@!l|
a(4 * i - 2) = Format(a(4 * i - 2), "0.000") _*f`iu:`
a(4 * i - 1) = Format(a(4 * i - 1), "0.000") A}l3cP;
`#
Print #1, a(4 * i - 3) & "," & a(4 * i - 2) & "," & a(4 * i - 1) & "," & a(4 * i) kGl~GOB
a
Next v?geCe=ng
Close #1 &v@a5 L
vam;4vyu
\kZ?
ez|)ph7
End Sub