|
|
发表于 2008-2-2 15:33:52
|
显示全部楼层
来自: 中国辽宁营口
用GetCustomScale方法,参见下面例程:6 X( K' b% | r+ D0 R. T
. P5 ~) |- b% {3 _. ~3 g# m
Sub PS()8 G/ v1 S1 ^, E6 @ ]7 R
Dim M As Double, N As Double, P(2) As Double
6 ~, m' a2 n* D4 u8 |% s+ t- ?) F With ThisDrawing
5 V- e. e' A1 F; p! C! u, I0 S .ActiveLayout.GetCustomScale M, N1 [" d& y5 x E! N0 T/ a% j
If .ActiveSpace = acModelSpace Then3 S$ Z: {: Y6 ~% `) I
.ModelSpace.AddText M & ":" & N, P, 10
+ d$ y. w0 e, r8 x3 {/ @ Else
- y7 p8 ?8 t. e2 ]( x( b .PaperSpace.AddText M & ":" & N, P, 10
9 `% n0 n( C% i, i8 s5 ?) _, u End If
0 x( z8 z6 ?% y: f! F9 ?( y End With
, e! K* s3 d0 d3 UEnd Sub |
|