NX二次开发】Block UI 体收集器
属性说明
| 属性 | 类型 | 描述 |
| 常规 | ||
| BlockID | String | 控件ID |
| Enable | Logical | 是否可操作 |
| Group | Logical | 是否分组 |
| Show | Logical | 是否可见 |
| 其他 | ||
| 附件 | ||
| Bottom | Attachment | 底部 |
| Left | Attachment | 左 |
| Right | Attachment | 右 |
| Top | Attachment | 顶部 |
| 特定于块 | ||
| AllowConvergentObject | Logical | 允许选择收敛体 |
| AutomaticProgression | Logical | 自动跳到下一个控件 |
| BalloonTooltipImage | String | 标题气泡提示图片 |
| BalloonTooltipLayout | Enum | 标题气泡提示类型 |
| BalloonTooltipText | Utfstring | 标题气泡提示文本 |
| Bitmap | String | 控件位图 |
| BlendVirtualCurveOverlay | Logical | 是否显示虚拟交线 |
| CreateInterpartLink | Logical | 是否显示部件间连接 |
| Cue | Utfstring | 提示 |
| InterpartSelection | Enum | 部件间选择设置 |
| LabelString | Utfstring | 标签标题 |
| MaximumScope | Enum | 最大范围 |
| SelectMode | Enum | 设置单选/多选 |
| StepStatus | Enum | 设置确定和应用按钮高亮 |
| ToolTip | Utfstring | 动态提示文本标题 |
| 选择意图 | ||
| BodyRules | Bits | 体规则 |
| DefaultBodyRules | Enum | 默认体规则 |
| EntityType | Bits | 实体类型 |
| IncludeSheetBodies | Logical | 包含片体 |
| PopupMenuEnabled | Logical | 是否启动右键菜单 |
获取控件选择的体
1 std::vector<TaggedObject*>objects=bodySelect0->GetSelectedObjects(); 2 tag_t tagBodyH=NULL_TAG; 3 tagBodyH=objects[0]->Tag();
获得焦点
this->bodySelect0->Focus();
单选、多选
bodySelect0->SetSelectModeAsString("Single"); bodySelect0->SetSelectModeAsString("Multiple");

浙公网安备 33010602011771号