点击查看详细介绍

选择对象列表判断相同、选择的视图、从对象选择列表中删除等

qianyuhua 9年前 5062 35

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


有关选择里的对象列表需要的头文件
#include <uf.h>
#include <uf_ui.h>
#include <uf_modl.h>
#include <uf_obj.h>
#include <uf_csys.h>

对象列表有自动判断相同功能
也就是说我们加入到对象列表里的对象都是唯一的,相同的面不可能加入2次,会别自动过滤掉。

uc1653 (char * cr1 ); 返回最后一个选择的视图

UF_UI_add_to_sel_list 加入到对象选择列表
UF_UI_ask_sel_list_count 返回对象选择列表数量
UF_UI_remove_from_sel_list 从对象选择列表中删除
UF_UI_ask_sel_object_list 返回对象选择列表数量 和 tag_t
UF_UI_remove_all_from_sel_list 从选择列表中删除所有对象和选择
UF_UI_is_object_in_sel_list

●●●请先 登陆注册 后查看●●●

UF_UI_toolbar_id_t id = NULL;
error = UF_UI_create_toolbar("my.tbr", 1, &id);

UF_UI_suspend_create_toolbar();
UF_UI_create_toolbar("file1.tbr",1, &id1);
UF_UI_create_toolbar("file2.tbr",1, &id2);
UF_UI_create_toolbar("file3.tbr",1, &id3);
UF_UI_resume_create_toolbar();


UF_UI_suspend_init_appstate();
UF_UI_create_toolbar("file1.tbr",1, &id1);
UF_UI_create_toolbar("file2.tbr",1, &id2);
UF_UI_create_toolbar("file3.tbr",1, &id3);
UF_UI_resume_init_appstate();


UF_UI_suspend_remove_toolbar();
if (id1) UF_UI_remove_toolbar(id1);
if (id2) UF_UI_remove_toolbar(id2);
if (id3) UF_UI_remove_toolbar(id3);
UF_UI_resume_remove_toolbar();
id1 = NULL;
id2 = NULL;
id3 = NULL;


3

最新回复 (35)
  • wxwxwxwx 9年前
    1

    谢谢分享。。。。。。。。。

  • yccong 9年前
    2

    正在学习中,谢谢楼主分享!!!

  • c1_wangyf 9年前
    3

    好东西一定要顶,加油!

  • peng1213 8年前
    4

    1111111111111111111111111111111111111

  • zhouyuxing 8年前
    5

    666666666666

  • q1355188058 8年前
    6

    nxopen基础学习.....................

  • zhixiang 8年前
    7

    谢谢分享!!!!!!!!!!!!!!!

  • bbs1860 8年前
    8

    学习中,谢谢分享!!!

  • zz127118 VIP会员 8年前
    9

    学习中,谢谢分享!!!!!!!

  • king_chinese VIP会员 8年前
    10

    选择对象列表判断相同、选择的视图、从对象选择列表中删除等

  • Mister_xv 8年前
    11

    回复:楼主
    苏打撒打算的

  • liu177459528 7年前
    12

    想看看过滤是否可以只得到体的平面

  • elan 7年前
    13

    谢谢分享。。。谢谢!!

  • qq859892220 7年前
    14

    看看 效果怎么样

  • docp 7年前
    15

    666666666666666666666666666666666666

请登录后发表新帖