zoukankan      html  css  js  c++  java
  • NX二次开发-UFUN遍历图层UF_LAYER_cycle_by_layer

     1 NX11+VS2013
     2 
     3 #include <uf.h>
     4 #include <uf_layer.h>
     5 #include <uf_ui.h>
     6 
     7 
     8 UF_initialize();
     9 
    10 UF_UI_open_listing_window();
    11 //遍历图层
    12 tag_t object_tag = NULL_TAG;
    13 UF_LAYER_cycle_by_layer(2, &object_tag);//2为遍历第2层里的所有对象(为0是所有图层)
    14 while (object_tag != NULL_TAG)
    15 {
    16     //转换
    17     char msg[256];
    18     sprintf_s(msg, "%d", object_tag);
    19     //打印
    20     UF_UI_write_listing_window(msg);
    21     UF_UI_write_listing_window("
    ");
    22     UF_LAYER_cycle_by_layer(2, &object_tag);
    23 }
    24 
    25 UF_terminate();
    26 
    27 Caesar卢尚宇
    28 2019年11月13日

  • 相关阅读:
    Java程序员从笨鸟到菜鸟全部博客目录
    Problem I
    Problem I
    Problem S
    Problem S
    Problem X
    Problem X
    Problem Q
    Problem Q
    Ellipse
  • 原文地址:https://www.cnblogs.com/nxopen2018/p/11853384.html
Copyright © 2011-2022 走看看