|
【求助】函数UF_MODL_ask_sweep_curves的用法目的获取拉伸对象的拉伸曲线调用UF_MODL_ask_sweep_curves函数怎么老出错
: W5 X9 J4 a" S1 d# q3 P; H/////////////////////////////9 @; ^3 V, s- [% a4 x4 Y1 @7 U
拾取对象
2 ~8 y2 V7 S7 U/ d0 q1 f% t tag_t three_element;, s# m6 F0 z2 L+ r9 J! J" Y$ w$ b9 |' k
opts.other_options=0; 1 Z# f0 C( t ~& \
opts.reserved=NULL; # [3 i R( O: q6 ~
opts.num_mask_triples=1;
7 U* V5 U0 H3 S. [; P4 V% a6 H( a opts.mask_triples=&mask;
: }0 C# R. f/ {3 Y opts.mask_triples->object_type=UF_solid_type;//UF_face_type;
& f: o5 I: p7 b' O* O opts.mask_triples->object_subtype=UF_solid_body_subtype;//UF_bounded_plane_subtype;
7 c4 b, o6 m7 Q& @; Q$ w7 l; n opts.mask_triples->solid_type=UF_UI_SEL_FEATURE_BODY;//UF_UI_SEL_FEATURE_ANY_FACE;
n) @3 k+ c, e# r opts.scope=UF_UI_SEL_SCOPE_WORK_PART;//UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY; . ~! Z# j" B1 s
irc=UF_UI_select_single(message,&opts,&response,&three_element,cursor,&view);
& k) |+ c9 [! ^/ Q+ }" L; o$ d UF_DISP_set_highlight(three_element,0);
8 x& ~8 i* z: u+ W8 I3 L8 I2 X; b 获取对象所属特征tag值
7 s0 @; j1 \; a3 O. D tag_t three_feature_tag;8 G# z! Y/ E+ O9 X
uf_list_t * feature_tag_list;
' v9 i% J0 S. U! F, l& m irc=UF_MODL_create_list(&feature_tag_list);0 D! [( e/ I2 w, m3 s( t: i7 b/ H2 L
irc=UF_MODL_ask_body_feats(three_element,&feature_tag_list);
8 P( ^2 }% u8 _+ h$ O tag_t list_item;6 Q- A: D3 A5 C0 [
irc=UF_MODL_ask_list_item(feature_tag_list,0,&list_item);
" I+ G* }+ C4 F9 V6 d 获取拉伸曲线8 @8 x: U8 t8 I* d J) p# @
int pro_number;
( W9 |3 ^$ Y8 e1 h3 z% S int gui_number;+ n. P$ H# Z/ G' C- j3 M
tag_t* pro_tag;& Y& ~- t8 U8 v W
tag_t* gui_tag;
/ A- \9 }! r- r- h; W+ ` irc=UF_MODL_ask_sweep_curves(list_item,&pro_number,&pro_tag,&gui_number,&gui_tag);
L* g; I; P9 m9 I7 `5 n0 c0 d* C0 d////////////////////////////////// |
|