|
|

楼主 |
发表于 2011-3-11 08:31:48
|
显示全部楼层
来自: 中国江苏苏州
谢谢你的回答,我一直想弄明白一个问题:Dimension和DisplayDimension有什么区别?? 他们对应的gettype函数的返回值也有所不同# n/ `+ d# T. P/ D
swDimensionParamType_eswDimensionParamTypeUnknown
4 a3 p' n& X; j) S& ^3 PswDimensionParamTypeDoubleLinear: c9 k9 Q+ z) v, c1 n
swDimensionParamTypeDoubleAngular
4 A; h3 W; O: L4 X0 ?6 T* q* |swDimensionParamTypeInteger
@) r/ h8 ~/ T" e7 @这是运用Dimension::GetType获得的返回值的类型
) c* S" x( ]3 l% s- k
3 n6 w8 R& V; `/ @; Z* [' `* r9 {swDimensionType_e swDimensionTypeUnknown - Dimension type could not be determined
' P6 G$ q. x% H5 {% T% p" ] swOrdinateDimension - Base ordinate and its subordinates are of this type
% S8 A: [6 S9 x9 o1 ^6 G swLinearDimension - Linear dimension type
* t$ c5 \$ Q9 N1 p- \" w' w swAngularDimension - Angular dimension type+ k& A. ]4 |3 n) a; m
swArcLengthDimension - Arc length dimension type* P/ k1 A) u' f* w9 m2 l
swRadialDimension - Radial and diametric dimensions are of this type7 J- c0 e0 D) E- S
swDiameterDimension3 _9 k3 c/ V- F* ^( u' U
swHorOrdinateDimension - Horizontal ordinate dimension ' J, r7 ]3 T: d+ P# n8 c
swVertOrdinateDimension - Vertical ordinate dimension$ v) H* c0 [7 g! A6 K& }( m
swZAxisDimension $ r( ?& n/ L3 L8 R* s7 Z
swChamferDimension
; \! ]. _6 K, |1 JswHorLinearDimension - Horizontal linear dimension" i: E7 r! r' S- V" V
swVertLinearDimension - Vertical linear dimension' }) i3 n0 o- k! B. F1 q ~* m
swScalarDimension
6 N( [( g% M( U) o6 H而这些是针对DispalyDimension::GetType的返回值类型3 U+ F) k: D/ W; t5 @" p4 z
. {& i+ N; q4 I; W所有说您用的是方法一对象的函数,而我是下一个,该返回值的角度类型经过我测试是存在那个比例关系。但是您说的那个由于弧度值导致的倍率又是由哪个函数得出的呢??GetValue吗?) J& ^" {0 r+ t) b
) ]) ~0 I6 Y% G) m$ G/ I
另外,想求教下!一个困惑很久的问题,当工程图中尺寸被覆盖后,使用DispalyDimension获得的尺寸值是覆盖之前的值,能否通过什么API函数得到覆盖后的新值?我没找到!谢谢!!
) c3 Z1 I+ Z% z& y, ^& d7 l 4# ps122hb |
|