查看: 5103|回复: 0

Catia CAA二次开发源码分享: 选择控件返回选择内容

[复制链接]

4

主题

3

回帖

44

积分

管理员

积分
44
发表于 2017-4-8 23:41:16 | 显示全部楼层 |阅读模式

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

×
Catia CAA二次开发源码分享: 选择控件返回选择内容7 K5 r# O& `' e8 [
! U8 m5 X0 u- I1 b
' t: X: Z; d. i4 D9 q( U7 t
        // Add your code here
/ f" }* L6 Z8 `/ L( o        CATDlgNotify *infordialog = new CATDlgNotify(this," ",CATDlgNfyInformation);
2 D& X  w! i9 _        CATUnicodeString str;6 s8 b" F; c0 J+ W( A
        CATUnicodeString tempvalue;
* g# [/ P# ~/ ?! p        int index = _SelectorListTest->GetSelecTCount();
3 C6 V$ I' @5 s8 L5 b. }% A5 T: ]% P        int *array = (int *) malloc(index*sizeof(int));4 _' \8 f) z- U
    int selectCount =         _SelectorListTest->GetSelect(array,index);4 t" u/ K  l* W# y+ n% F7 Y
        for (int i = 0; i< index ;i++)2 G& y% Y% ^" E
        {7 ]$ h: V; R, }0 A5 J7 J
                _SelectorListTest->GetLine(tempvalue,array);
$ f, {0 x; h- V: }' U                 str = str + "--" + tempvalue;# q& @! X" c( N$ v, k/ x, @- ]
        }* _0 B9 b+ _) V
4 b9 g  i/ z  s/ E' B( Q1 b
        infordialog->SetText("you select value are " + str);" J# a# R4 x1 D: R# t! S% q6 I) n
        infordialog->SetTitle("PLMHome Select refreshing");
) b2 _5 P8 K: `9 E        infordialog->SetVisibility(CATDlgShow);
- N6 {3 d0 s( D/ Y, j$ I5 I; ~. l' b; E
+ ^1 U+ R7 S- M
22222.PNG 9 {6 A+ y- M. {

$ b' A' I( g  |1 p- B9 w! B/ \
- P  V; z; z8 P- d
3 \7 z" E8 L. e
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

在本版发帖
关注公众号
QQ客服返回顶部