zoukankan      html  css  js  c++  java
  • NXOpen 判断部件加载状态和部件抑制状态

    //获取部件加载状态
    bool isloading = true;
    Part *resCurrentProtype = dynamic_cast<Part *>(component1->Prototype());

    if(resCurrentProtype == NULL)
    {
    isloading = false;// 不加载为false 全加载和部份加载为true
    }


    //获取部件抑制状态
    bool suppressedState = true ;
    if(component1->IsSuppressed()||component1->Prototype()==NULL)
    {
    suppressedState = false ; // 抑制的和空的为false
    }

    //判断装配组件Component是否加载状态
    bool isComponentLoad(Assemblies::Component *component)
    {
    bool isbool = true;
    Part *resCurrentProtype = dynamic_cast<Part *>(component->Prototype());

    if(resCurrentProtype == NULL)
    {
    isbool = false;
    }
    return isbool;
    }

    //判断装配组件Component是否抑制
    bool suppressedState(Assemblies::Component *component)
    {
    bool suppressedState = true ;
    if(component->IsSuppressed()||component->Prototype()==NULL)
    {
    suppressedState = false ; // 抑制的和空的为false
    }
    }

    怡宁塑胶模具设计
  • 相关阅读:
    JS 数组及函数的应用
    JavaScript 基础知识点
    利用css布局效果图
    css 区块与盒子模型
    JS数组及函数的应用
    JavaScript基础
    近期总结12.30
    层叠样式与盒子模型
    PHP课后小结 2017.12.22
    PHP课后小结 12.20
  • 原文地址:https://www.cnblogs.com/hqsalanhuang/p/14308169.html
Copyright © 2011-2022 走看看