NXOPen中过滤属性的设置
来源:互联网 发布:关宁军 知乎 编辑:程序博客网 时间:2024/05/16 14:21
在NX二次开发的过程中,经常要过滤各种控件的类型,主要有三类:首先是type filter的设置,用于控制鼠标选中face、curve、sketch、solidbody、sheetbody等类型;其次是face rule的设置,即控制选中face的方式,有单个面、相切面、相邻面、面和相邻面等类型;与此类似第三个是curve rule。
一:Type Filter的设置
控件类型为select object,代码如下:
//设置select_sketch的过滤对象;
NXOpen::Selection::SelectionAction action1 = Selection::SelectionActionClearAndEnableSpecific;
std::vector<NXOpen::Selection::MaskTriple>sketch_selectionMask_array(1);
sketch_selectionMask_array[0].Type = UF_sketch_type;
sketch_selectionMask_array[0].Subtype = UF_v13_sketch_subtype;
this->slect_Sketch->GetProperties()->SetSelectionFilter("SelectionFilter", action1, sketch_selectionMask_array);
//设置select_body的过滤类型;
NXOpen::Selection::SelectionAction action2 = Selection::SelectionActionClearAndEnableSpecific;
std::vector<NXOpen::Selection::MaskTriple>body_selectionMask_array(1);
body_selectionMask_array[0].Type = UF_solid_type;
body_selectionMask_array[0].Subtype = UF_solid_body_subtype;
this->select_Body->GetProperties()->SetSelectionFilter("SelectionFilter", action2, body_selectionMask_array);
NXOpen::Selection::SelectionAction action1 = Selection::SelectionActionClearAndEnableSpecific;
std::vector<NXOpen::Selection::MaskTriple>sketch_selectionMask_array(1);
sketch_selectionMask_array[0].Type = UF_sketch_type;
sketch_selectionMask_array[0].Subtype = UF_v13_sketch_subtype;
this->slect_Sketch->GetProperties()->SetSelectionFilter("SelectionFilter", action1, sketch_selectionMask_array);
//设置select_body的过滤类型;
NXOpen::Selection::SelectionAction action2 = Selection::SelectionActionClearAndEnableSpecific;
std::vector<NXOpen::Selection::MaskTriple>body_selectionMask_array(1);
body_selectionMask_array[0].Type = UF_solid_type;
body_selectionMask_array[0].Subtype = UF_solid_body_subtype;
this->select_Body->GetProperties()->SetSelectionFilter("SelectionFilter", action2, body_selectionMask_array);
二:face rule的设置
控件类型为face collcetor:
this->singel_Face->SetFaceRules(0x1);
this->adjacent_Face->SetFaceRules(0x4001);
this->adjacent_Face->SetFaceRules(0x4001);
三:curve rule的设置
0 0
- NXOPen中过滤属性的设置
- JSON设置过滤属性
- JSON过滤属性,设置属性转换器的方法
- UG的NXOpen体系示例
- 谈谈UG二次开发的Open和NXOpen
- Jackson属性的过滤
- 返回的json数据中过滤掉值是null的属性
- NXOpen创建block,设置颜色,遍历边,倒角
- fiddler 过滤的设置
- sap中使用SE11读取透明表时,如何设置过滤条件(属性)
- EntityViewInfo中FilterInfo如何设置包含多项的过滤?
- EntityViewInfo中FilterInfo如何设置包含多项的过滤?
- 在AS中logcat的设置过滤信息图文教程
- jQuery的属性过滤选择器
- GAE Gqlquery Date属性不能设置为过滤条件的Bug
- C# openfiledialog设置filter属性后达不到过滤效果的原因之一
- NXopen .net remoting遇到个很棘手的问题
- Open C 到 NXOpen 四个关键函数的映射
- Neutron总结-linuxbridge+flat网络
- vSphere 6.5 What's New详解
- 基础算法(零)---递归
- Java打印平行四边形
- PagerAdapter 和 FragmentPagerAdapter 的区别
- NXOPen中过滤属性的设置
- Part03
- 移动前端console调试面板(移动网页端调试工具)—vConsole
- React-native 问题汇总
- 苹果的开发环境介绍、开发语言以及框架简介
- 【设计模式】命令模式
- C++之运算符的重载三:重载流插入运算符和流提取运算符
- html--3.表格、表单
- Part02