Private Sub CommandButton1_Click() &l_}yf"v
Form1.Hide L@Qvj-5e
Dim a() ?pd/cj^
Dim txt As String #RSUChe7w
Dim point1 As Variant DZH2U+K
Dim point2 As Variant fF9hL3h?)
Dim gc As String Vl<7>
Do gCVOm-*:
point1 = ThisDrawing.Utility.GetPoint(, vbCrLf & "点的坐标:") $cm9xW&
point2 = ThisDrawing.Utility.TranslateCoordinates(point1, acWorld, acUCS, False) >/%XP_q%`e
If point2(0) = "0" And point2(1) = "0" Then }rs>B,=*k
Exit Do i;|I;5tC
End If D,=#SBJ :Z
n = n + 1 UFj!7gX ]
ReDim Preserve a(1 To 4 * n) ;AL:VU
If Check1.Value Then Q~' \oWz
txt = ThisDrawing.Utility.GetString(0, vbCrLf & "点号:") 2!b##`UjA7
a(4 * n - 3) = txt e$`hRZ%
Else WW^+X~Y
a(4 * n - 3) = n r/P}j4)b7
End If `@0AGSzUv
*ywr_9
If Check2.Value Then 7;Q4k"h
gc = ThisDrawing.Utility.GetString(0, vbCrLf & "点的高程:") ;3bUgI}.J
a(4 * n) = gc 4HGS
Else STg}
Z
a(4 * n) = 0 ^%LyT!y
End If Y5"HKW^
a(4 * n - 2) = point2(0) # M!1W5#
a(4 * n - 1) = point2(1) R)isWw4
Loop 6P,uy;PJ
CommonDialog1.ShowSave 3r,Kt&2$
Open CommonDialog1.FileName For Output As #1 V 7ZGT
For i = 1 To n |*-<G3@
a(4 * i - 2) = Format(a(4 * i - 2), "0.000") <viC~=k;
a(4 * i - 1) = Format(a(4 * i - 1), "0.000") $
O[Y
Print #1, a(4 * i - 3) & "," & a(4 * i - 2) & "," & a(4 * i - 1) & "," & a(4 * i) I-Ut7W
Next *{Z=)k%
Close #1 AA=eWg
Y"m(hs$
|~18MW
AUIp
vd
End Sub