Private Sub CommandButton1_Click() Gc6`]7 s
Form1.Hide (KQAKEhD!
Dim a() R?bF
b|5t
Dim txt As String GjF'03Z4
Dim point1 As Variant m<]b]FQ
Dim point2 As Variant ,#;%ILF4%
Dim gc As String _h;#\ )%~
Do 'U=D6X%V9m
point1 = ThisDrawing.Utility.GetPoint(, vbCrLf & "点的坐标:") ;;4xpg
point2 = ThisDrawing.Utility.TranslateCoordinates(point1, acWorld, acUCS, False) ~bL^&o(W
If point2(0) = "0" And point2(1) = "0" Then 'Y`.0T[&
Exit Do 4'L%Wz[6
End If /Hxz@=LC1
n = n + 1 5<1,`Bq@
ReDim Preserve a(1 To 4 * n) p%Zx<=f-_
If Check1.Value Then NKae~ 1b
txt = ThisDrawing.Utility.GetString(0, vbCrLf & "点号:") oB$7m4xO\
a(4 * n - 3) = txt +Ja9p
Else PP{2{
a(4 * n - 3) = n 2x3'm
End If Sg$14B
(W.euQy
If Check2.Value Then |/LCwq%
gc = ThisDrawing.Utility.GetString(0, vbCrLf & "点的高程:") F^Q[P4>m\
a(4 * n) = gc @H'pvFLK?
Else -8F~Tffx
a(4 * n) = 0 )./pS~
End If d3
h^L
a(4 * n - 2) = point2(0) 49Sq)jd<
a(4 * n - 1) = point2(1) G}.t!"
Loop D#lx&J.s
CommonDialog1.ShowSave Q)pm3Wi
Open CommonDialog1.FileName For Output As #1 ;Kb]v\C:
For i = 1 To n ^'"sFEV7RN
a(4 * i - 2) = Format(a(4 * i - 2), "0.000") b.Wf*I?
a(4 * i - 1) = Format(a(4 * i - 1), "0.000") ZT@a2:&
Print #1, a(4 * i - 3) & "," & a(4 * i - 2) & "," & a(4 * i - 1) & "," & a(4 * i) ("HT0a
Next M+Rxt.~6
Close #1 OW$?
6
\gd.Bl
%DJxUuh
{UX[SAQ
End Sub