|
【求助】函数UF_MODL_ask_sweep_curves的用法目的获取拉伸对象的拉伸曲线调用UF_MODL_ask_sweep_curves函数怎么老出错
2 Z/ c; Q( W8 M3 ^6 c- b( A/ N/////////////////////////////
2 E7 s1 A" y9 y% E9 _' m9 p 拾取对象
7 H4 B/ w9 Z7 O+ |- Y tag_t three_element;% l& [. H0 D5 p6 J! S- _- ]/ R
opts.other_options=0; ' u; |; r% M6 E5 d# T
opts.reserved=NULL; ! L! b! i1 j# q+ s/ q- k3 x
opts.num_mask_triples=1;
# A3 ~* M9 o, c" b! J opts.mask_triples=&mask; / P+ O6 j+ ~8 d
opts.mask_triples->object_type=UF_solid_type;//UF_face_type; 8 k8 k2 \! a- H9 W6 ~1 p
opts.mask_triples->object_subtype=UF_solid_body_subtype;//UF_bounded_plane_subtype; 0 c% n% ^7 Y! f
opts.mask_triples->solid_type=UF_UI_SEL_FEATURE_BODY;//UF_UI_SEL_FEATURE_ANY_FACE; " w- {+ ~+ R7 g! o7 d/ I5 F
opts.scope=UF_UI_SEL_SCOPE_WORK_PART;//UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY;
( i* U- Y$ O) o% h: s# P irc=UF_UI_select_single(message,&opts,&response,&three_element,cursor,&view); , E. F1 \) n' _2 Z5 N
UF_DISP_set_highlight(three_element,0);
& J- N$ n* |6 b/ ] 获取对象所属特征tag值
3 |6 N8 m6 Q- W9 v tag_t three_feature_tag;
: f( h4 W8 D* P+ M( D8 _+ G: D uf_list_t * feature_tag_list;
- \( G3 C6 u; c! _2 Q9 P irc=UF_MODL_create_list(&feature_tag_list);
& B3 O; J2 V5 i irc=UF_MODL_ask_body_feats(three_element,&feature_tag_list);; ^3 i) _ D' @+ m M# s5 A$ [# z: v
tag_t list_item;8 `& G& c- v, s+ y9 P
irc=UF_MODL_ask_list_item(feature_tag_list,0,&list_item);( a8 t" v g. L$ d; J
获取拉伸曲线3 ?; Y1 w! l+ _' h, V
int pro_number;
/ o* W j/ Q1 p, B int gui_number;! U9 o) `6 U4 L9 |; N+ Q* E
tag_t* pro_tag;
0 _% ^7 A/ r0 V; U3 N' k& W& Z tag_t* gui_tag;
& w$ E* j2 O* x, l. w( [6 h irc=UF_MODL_ask_sweep_curves(list_item,&pro_number,&pro_tag,&gui_number,&gui_tag);
& F9 b) h y+ h6 Y9 c! t2 @////////////////////////////////// |
|