怡宁塑胶模具设计

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 

//获取部件加载状态
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
}
}

 

posted on 2021-01-21 15:14  怡宁塑胶模具设计  阅读(294)  评论(0编辑  收藏  举报