UG二次开发常用函数模板(4)
发布时间:2021-06-05
发布时间:2021-06-05
void class_sel_dlg(int *count,tag_p_t *objects)
{
char cue[] = "";
char title[] = "";
int response, sel_count, i;
tag_p_t sel_objects;
if((UF_CALL(UF_UI_select_with_class_dialog(
cue, title, UF_UI_SEL_SCOPE_NO_CHANGE,
init_proc_face, NULL, &response, &sel_count, &sel_objects))) == 0) {
printf("object count = %d\n",sel_count);
if (response == UF_UI_OK && sel_count > 0)
{
*objects=sel_objects;
*count=sel_count;
for (i=0; i<sel_count; i++)
{
printf("object tag = %d\n", sel_objects[i]);
UF_DISP_set_highlight(sel_objects[i], 0);
}
UF_free(objects);
}
}
}
6、UF_MODL_delete_object_parms//消参
头文件:
#include < uf_modl.h>
#include < uf_modl_utilities.h >
uf_list_p_t obj_list;
UF_CALL(UF_MODL_create_list(&obj_list));
UF_CALL(UF_MODL_put_list_item(obj_list, ));
UF_CALL(UF_MODL_put_list_item(obj_list, ));
UF_MODL_delete_object_parms(obj_list);
UF_MODL_delete_list(&obj_list);
UF_OBJ_delete_object();
上一篇:第六讲薪酬管理
下一篇:农作物根外施肥技术要点