|
/*创建坐标标注*/0 o- M3 s1 b5 l' b; `+ @
for(int i=0;i<count;i++)
& i. Y1 o, [/ h* f }3 A& p. W{ t: ]8 B: ^$ k0 n% t
UF_DRF_text_t drf_text;
# G( u* \- U9 p; J' _ char append_text[1][133];
8 w' |' d9 j: e Z- w2 V+ x strcpy (append_text[0], "");
9 m Z. [/ V/ q7 R drf_text.user_dim_text = user_text;
- q' O0 F0 Q# P. i1 Q0 P2 ^ drf_text.lines_app_text = 1;
; _$ }* h8 N" \* P7 O drf_text.appended_text = append_text;
- w, N6 I0 @5 Q% u$ N double origin[3]={0,0,0};
6 A z4 f4 ^/ y2 e& e object1.object_tag = front_objects[ i ];0 B0 J6 `% B8 j" {$ ?" q) ^& @
object1.object_view_tag = front_view_tag;3 r' A$ ~/ Y2 S+ i$ x
object1.object_assoc_type = UF_DRF_end_point;3 d& E. f4 V" \
object1.object_assoc_modifier =UF_DRF_first_end_point;
" N6 d9 F7 r% d! i( k UF_DRF_create_orddimension(margin_tag,1,&object1,0,1,&drf_text,1,origin,&dimension_tag);5 J6 p W+ K' |9 e/ C
UF_DRF_create_orddimension(margin_tag,2,&object1,0,1,&drf_text,1,origin,&dimension_tag);
7 J9 [6 M" k0 Z 9 ~' u* r* P2 F" S$ p# }( v
( M0 v& V0 e4 ^) B, l}8 g c3 w6 \5 |' L1 F
UF_DRF_create_orddimension(margin_tag,1,&object1,0,1,&drf_text,1,origin,&dimension_tag);' k% V6 C% S- |* F: X. D
UF_DRF_create_orddimension(margin_tag,2,&object1,0,1,&drf_text,1,origin,&dimension_tag);+ m; Y5 d/ m" Y
为什么我这样代码只出现垂直标注,没有水平标注, r2 P5 i. x/ a2 D& O& Y
|
|