|
|
发表于 2008-2-2 15:33:52
|
显示全部楼层
来自: 中国辽宁营口
用GetCustomScale方法,参见下面例程:
$ T7 m& I5 V' ^! }
% x% p+ `0 \8 _, d5 a3 ?Sub PS()
( o, {. [* h2 e' n0 E Dim M As Double, N As Double, P(2) As Double, V% O7 i# C, F H0 x
With ThisDrawing
# U2 w* Y$ B7 x% {" Z .ActiveLayout.GetCustomScale M, N
& g* U2 p; k. D If .ActiveSpace = acModelSpace Then. i7 t8 v! @: F, O% K
.ModelSpace.AddText M & ":" & N, P, 10' C& U& H9 o7 \
Else7 f2 G2 X6 C. e9 ^
.PaperSpace.AddText M & ":" & N, P, 10! i' ^/ _. \+ c! H' C- e
End If; K; r# g" |! L6 @
End With
" ]# H" b l c4 w$ X2 TEnd Sub |
|