zoukankan      html  css  js  c++  java
  • NXOpen 设置工作图层 一键开关图层

    C++  2010

     workPart = theSession->Parts()->Work();
     displayPart = theSession->Parts()->Display();

     //图层一设为工作图层
        std::vector<Layer::StateInfo> stateArray1(2);
        stateArray1[0] = Layer::StateInfo(2, Layer::StateSelectable);
        stateArray1[1] = Layer::StateInfo(1, Layer::StateWorkLayer);
        workPart->Layers()->ChangeStates(stateArray1, false);

     //打开所有图层
     std::vector<Layer::StateInfo> stateArray2(255);
     for ( int i = 0 ; i <=254;i++)
     {
      stateArray2[i] = Layer::StateInfo(i+2, Layer::StateSelectable);
     }
        workPart->Layers()->ChangeStates(stateArray2, false);

     //关闭所有图层
     std::vector<Layer::StateInfo> stateArray2(255);
     for ( int i = 0 ; i <=254;i++)
     {
      stateArray2[i] = Layer::StateInfo(i+2, Layer::StateHidden);
     }
        workPart->Layers()->ChangeStates(stateArray2, false);

    //一键打开所有图层

    //一键关闭所有图层

    怡宁塑胶模具设计
  • 相关阅读:
    持久化类的三种状态
    Hibernate持久化类规则
    JSP之Bean
    JSP动作标签
    JSP九大内置对象
    Jsp指令
    JSTL标签语言
    JSP之EL表达式
    Java 中的 Characters
    汇编基本语法
  • 原文地址:https://www.cnblogs.com/hqsalanhuang/p/14491893.html
Copyright © 2011-2022 走看看