【NX二次开发】Block UI 线性尺寸

属性说明

常规         类型 描述
    BlockID     String 控件ID
    Enable     Logical 是否可操作
    Group     Logical 是否分组
    Label     Utfstring 标题
    Show     Logical 是否可见
其他            
    RetainValue Logical 是否保存值
    附件        
        Bottom Attachment 底部
        Left Attachment
        Right Attachment
        Top Attachment 顶部
特定于块            
    AutoReverseDuringDrag Logical 负数是否逆向拖动
    BalloonTooltipImage String 标题气泡提示图片
    BalloonTooltipLayout Enum 标题气泡提示类型
    BalloonTooltipText Utfstring 标题气泡提示文本
    Formula Utfstring 公式
    HandleOrientation Vector 手柄方向
    HandleOrigin Point 手柄原点
    MaximumValue Double 最大值
    MaxInclusive Logical 包括最大值
    MinimumValue Double 最小值
    MinInclusive Logical 包括最小值
    ShowFocusHandle Double 是否显示线性尺寸值
    ShowHandle Double 是否显示线性尺寸
    ShowSpin Logical ?
    Value Double 控件值
    WithScale Logical 是否增加拖动按钮
     

 

获取控件值

doValLinear_dim0=this->linear_dim0->GetProperties()->GetDouble("Value"); 

设置值

double douA=0.5;
this->linear_dim0->GetProperties()->SetDouble("Value",douA);

设置不可更改

this->linear_dim0->SetEnable(true);

 

posted @ 2020-07-20 16:49  王牌飞行员_里海  阅读(292)  评论(0编辑  收藏  举报