|
【求助】函数UF_MODL_ask_sweep_curves的用法目的获取拉伸对象的拉伸曲线调用UF_MODL_ask_sweep_curves函数怎么老出错
{; `1 ]& `$ x8 Z/////////////////////////////! C) ?& _3 z7 c9 f) S
拾取对象
5 g D" ^& U6 N2 l7 k4 E- w5 l tag_t three_element;
8 O# c) e0 K# [% w9 j d4 L8 ] opts.other_options=0;
# Z7 f" {! E5 L5 R9 ]; { opts.reserved=NULL;
/ x7 d7 f6 i9 c8 z& o opts.num_mask_triples=1; 1 N# u! H1 ?) t' p5 X
opts.mask_triples=&mask;
; X. e7 H; K8 p" L6 S+ U/ ~1 N opts.mask_triples->object_type=UF_solid_type;//UF_face_type;
2 Q* L- J: V5 O: [4 g opts.mask_triples->object_subtype=UF_solid_body_subtype;//UF_bounded_plane_subtype;
) H# C0 J. E# O; {* c; y# _) B opts.mask_triples->solid_type=UF_UI_SEL_FEATURE_BODY;//UF_UI_SEL_FEATURE_ANY_FACE;
% d( U N$ H& ] opts.scope=UF_UI_SEL_SCOPE_WORK_PART;//UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY;
- H- W$ f, b' W7 ^ irc=UF_UI_select_single(message,&opts,&response,&three_element,cursor,&view); + s1 ^6 T/ J# e
UF_DISP_set_highlight(three_element,0);+ Z( M' b7 g% h0 k: s
获取对象所属特征tag值/ N; Y# f5 Y1 |' l' D+ I
tag_t three_feature_tag;
6 b3 p& A, u4 q+ L' \4 y# D6 r: O uf_list_t * feature_tag_list;" N" ? c5 y& `" q
irc=UF_MODL_create_list(&feature_tag_list);
) F+ c$ c, y3 r irc=UF_MODL_ask_body_feats(three_element,&feature_tag_list);; K) \4 P4 m& m
tag_t list_item;+ d* A3 W8 L, T) Y4 [
irc=UF_MODL_ask_list_item(feature_tag_list,0,&list_item);
; J! d8 X. O3 Y6 ]( a3 K$ A 获取拉伸曲线" `3 I* o5 U' R& V
int pro_number;
. r, m* o! R6 e/ `4 v* ^ int gui_number;) G8 {) f3 ? t
tag_t* pro_tag;6 U1 {7 J; J9 p1 ]- j- b7 H: p
tag_t* gui_tag;
- M. [' A+ D+ m irc=UF_MODL_ask_sweep_curves(list_item,&pro_number,&pro_tag,&gui_number,&gui_tag);
* K8 N8 h3 [9 A5 U& k////////////////////////////////// |
|