【NX二次开发】Block UI 指定矢量

属性说明

属性   类型   描述
  常规         
   BlockID    String    控件ID
   Enable    Logical    是否可操作
   Group    Logical    是否分组
   Label    Utfstring    标题
   Show    Logical    是否可见
  其他         
   附件         
    Bottom    Attachment    底部
    Left    Attachment   
    Right    Attachment   
    Top    Attachment    顶部
  特定于块         
   AutomaticProgression    Logical    自动跳到下一个控件
   BalloonTooltipImage    String    标题气泡提示图片
   BalloonTooltipLayout    Enum    标题气泡提示类型
   BalloonTooltipText    Utfstring    标题气泡提示文本
   CreateInterpartLink    Logical    是否显示部件间连接
   DoubleSide    Logical    浮点侧?
   EnableFacetSelection    Logical    是否支持面上的选择
   EnableReverseDirection    Logical    反向
   InterpartSelection    Enum    部件间选择设置
   Is2DMode    Logical    是否2d模式
   LabelString    Utfstring    标签标题
   SmartUpdateOption    Enum    智能更新选项
   SnapPointTypesOnByDefault    Bits    设置捕捉点内容被启用
   StepStatus    Enum    设置确定和应用按钮高亮

获取控件的值

double douVector0[3] = { 0.0,0.0,0.0 };
Vector3d vec = this->vector0->GetProperties()->GetVector("Vector");
douVector0[0] = vec.X;
douVector0[1] = vec.Y;
douVector0[2] = vec.Z;

 

 设置空间的值

1 double douDir[3] = { 0.0,0.0,1.0 };
2 Vector3d vecDir(douDir[0], douDir[1], douDir[2]);
3 this->vector0->GetProperties()->SetVector("Vector", vecDir);

 

【NX二次开发】指定矢量控件,记住上次选择的方向

posted @ 2020-07-21 14:29  王牌飞行员_里海  阅读(515)  评论(0编辑  收藏  举报