|
|

楼主 |
发表于 2011-3-11 08:31:48
|
显示全部楼层
来自: 中国江苏苏州
谢谢你的回答,我一直想弄明白一个问题:Dimension和DisplayDimension有什么区别?? 他们对应的gettype函数的返回值也有所不同' { R5 V0 G1 c3 Q8 @% e9 v% i2 H; |
swDimensionParamType_eswDimensionParamTypeUnknown9 r5 D. I5 ]0 I( n
swDimensionParamTypeDoubleLinear
5 k5 s7 K, n) P7 e4 W" }swDimensionParamTypeDoubleAngular1 L( i9 J9 f6 `. I
swDimensionParamTypeInteger
& t1 b; \- v" i7 s: i! a6 o这是运用Dimension::GetType获得的返回值的类型
+ ~( o6 g) H Z: h0 d* ^5 y3 E7 o4 |( E) z# B- p
swDimensionType_e swDimensionTypeUnknown - Dimension type could not be determined) A# I2 C6 a3 d i+ k* O5 Z. u
swOrdinateDimension - Base ordinate and its subordinates are of this type
) `8 K, J; y) Z$ |, I/ [ swLinearDimension - Linear dimension type9 s) t9 Y5 o1 U9 f& d8 p
swAngularDimension - Angular dimension type
5 ^: U0 E) Z9 v/ J5 k" h y swArcLengthDimension - Arc length dimension type
. A/ M, A z5 m/ u3 w swRadialDimension - Radial and diametric dimensions are of this type
2 Y# h, m1 z7 X+ l* ^) GswDiameterDimension1 h: v$ g# Z. P! ?8 { S, V
swHorOrdinateDimension - Horizontal ordinate dimension
8 o0 k' w- c' l* OswVertOrdinateDimension - Vertical ordinate dimension
4 H1 V: }* z- T. GswZAxisDimension
) Q4 a$ H2 ]) C6 z9 h& v! dswChamferDimension
" t4 ?* Z: \. s) n( x- p* g& K* \, JswHorLinearDimension - Horizontal linear dimension
. @; G& `1 L% EswVertLinearDimension - Vertical linear dimension
2 z- a$ @2 z9 _7 I) ?& A' u4 NswScalarDimension# D! j% d5 H" a, |3 V3 C
而这些是针对DispalyDimension::GetType的返回值类型1 \% G' o2 f' p6 f, R* u/ _
5 ?* M- S# t3 G" w# B
所有说您用的是方法一对象的函数,而我是下一个,该返回值的角度类型经过我测试是存在那个比例关系。但是您说的那个由于弧度值导致的倍率又是由哪个函数得出的呢??GetValue吗?
: N( r2 a T& \5 z3 h1 S1 A x1 D
另外,想求教下!一个困惑很久的问题,当工程图中尺寸被覆盖后,使用DispalyDimension获得的尺寸值是覆盖之前的值,能否通过什么API函数得到覆盖后的新值?我没找到!谢谢!!# W K6 a5 P5 \+ ~# j/ C- F5 l3 _; a
4# ps122hb |
|