|
|

楼主 |
发表于 2011-3-11 08:31:48
|
显示全部楼层
来自: 中国江苏苏州
谢谢你的回答,我一直想弄明白一个问题:Dimension和DisplayDimension有什么区别?? 他们对应的gettype函数的返回值也有所不同
7 W3 s0 L: {& ~ c z5 G& `swDimensionParamType_eswDimensionParamTypeUnknown
% s9 N3 x- K: ^; p; ]4 g- {9 O4 @' vswDimensionParamTypeDoubleLinear
6 x7 M1 W3 u* DswDimensionParamTypeDoubleAngular7 {- f9 v0 _6 H& _: ?2 I7 o: e
swDimensionParamTypeInteger
) Q, U- K3 t$ _4 p- ^6 E' j这是运用Dimension::GetType获得的返回值的类型* D) b0 e- }- i
9 R0 N& N: P: lswDimensionType_e swDimensionTypeUnknown - Dimension type could not be determined, f/ Y1 h) K6 r$ @3 U4 u3 S
swOrdinateDimension - Base ordinate and its subordinates are of this type
: k1 w" f6 P( u" C swLinearDimension - Linear dimension type
7 R& _2 o- i {( q) A { s swAngularDimension - Angular dimension type
7 X: E! |7 {) `" x swArcLengthDimension - Arc length dimension type5 I2 K8 g0 R' e8 t
swRadialDimension - Radial and diametric dimensions are of this type! v$ q" B5 o0 q2 V' j6 a2 @
swDiameterDimension6 e. G& h/ O# k m+ i& Y, f* l% T V
swHorOrdinateDimension - Horizontal ordinate dimension ! l E3 U: V$ {" W$ a- s7 f
swVertOrdinateDimension - Vertical ordinate dimension* \ Y3 q; C8 Z1 B5 [0 K
swZAxisDimension 6 c6 A0 J& ~; m: T8 T
swChamferDimension
6 h$ V( n' _, n/ M3 kswHorLinearDimension - Horizontal linear dimension& T2 z% Z- j W; R( P$ i
swVertLinearDimension - Vertical linear dimension
: t9 A3 G0 G% R8 LswScalarDimension @2 I* @9 G" T" K- T
而这些是针对DispalyDimension::GetType的返回值类型4 | b# d$ `& `/ S
3 E& P% G \# g) z1 i
所有说您用的是方法一对象的函数,而我是下一个,该返回值的角度类型经过我测试是存在那个比例关系。但是您说的那个由于弧度值导致的倍率又是由哪个函数得出的呢??GetValue吗?! S& i# c( G$ M8 g1 Z- y7 i
; V8 _/ t: C6 ?5 E
另外,想求教下!一个困惑很久的问题,当工程图中尺寸被覆盖后,使用DispalyDimension获得的尺寸值是覆盖之前的值,能否通过什么API函数得到覆盖后的新值?我没找到!谢谢!!, S& H- @8 K7 G9 c8 y4 f
4# ps122hb |
|