|
static void do_ugopen_api(void)
5 b4 ~. P" \0 U8 X1 x) n& Z{+ I& P% f1 ~" u3 U0 ?# T; ^
int irc = 0;! C1 g8 F5 U, @# a: g
char *message = "Select Objects";& x* @7 d0 B) R% B; u
UF_UI_selection_options_t opts;
" f8 e t5 j- e& R UF_UI_mask_t mask[1] = {{UF_circle_type, 0, 0}};
+ X7 A& D" Y0 g& k+ R; Z0 H* \) y4 C9 ~8 u0 I6 ~
int response, count;
6 y) u9 {; E" X) g* j1 O0 ` tag_t objects;" P* T$ }( K$ O3 p
tag_p_t object;
) }) ~" c; `, N# E& N' C tag_t obj;7 w, ~6 l- C, Q6 p7 `
* {! t& U( g$ k* n+ q4 x3 Z( F
opts.other_options = 0;
6 T7 L( H, p) T opts.reserved = NULL;
$ r. |+ e5 W; s opts.num_mask_triples = 1;7 S3 Y) z7 x9 X4 p" i
opts.scope = UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY;
* x% B, v( Z' o4 i opts.mask_triples = &mask[0];
7 ]9 B, v0 p" a$ h6 V* e //* set selection scope to be work part & occurrence */
2 Q+ P, P9 m7 w. d0 [% I# z irc = UF_UI_select_by_class(
. g/ l, I Y+ u' G y: B message,&opts,&response,&count,&object );
A: h' M6 K9 h: g //* if no error, print information about selected objects */ m8 @2 P, M# L/ M& ^! \
8 z. d9 k- J/ Y% m if(!irc)5 j: ^7 ~2 t1 q, a* Z$ L( G
{
+ ^7 g9 C+ N/ |: s% H: J if (object != NULL)
1 m% q/ F5 w, |3 B {
& H( Q$ M, B" n; N8 f" F! F UF_DISP_set_highlight(object[0],0);6 |% k& a. {! q# F- V
obj = UF_ASSEM_ask_work_occurrence();
* _5 W8 z+ p; B1 n% f5 Z. w6 w2 u UF_CALL(UF_WAVE_create_linked_body(object[0],obj,true,&objects));
3 F4 j1 G6 d! a2 l4 K6 @0 e UF_MODL_update();8 q6 E) F* d% R3 I
}/ S( a7 \+ U5 {! h, s* g) w- g3 s
}% D$ u$ f; N" R4 R8 F
UF_free(object);0 e9 Z& l+ D9 Y1 Z
}9 T6 ]% b4 g' G+ [5 Q
程序实现后没反应,求高手帮忙指点,是不是我的函数找错了还是函数用错了?? |
|