zoukankan      html  css  js  c++  java
  • 【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二次开发】指定矢量控件,记住上次选择的方向

  • 相关阅读:
    莫队
    NOIP2010_T4_引水入城 bfs+贪心
    拉灯游戏 搜索
    种花小游戏 随机化搜索
    [usaco2003feb]impster
    P1265 公路修建 (prim)
    P3378 【模板】堆
    并查集 模板
    P2661 信息传递
    P1828 香甜的黄油 Sweet Butter (spfa)
  • 原文地址:https://www.cnblogs.com/KMould/p/13354845.html
Copyright © 2011-2022 走看看