WEB开发网
开发学院图形图像AutoCAD 基于CATIA的界面二次开发方法与实例 阅读

基于CATIA的界面二次开发方法与实例

 2009-06-05 10:09:36 来源:WEB开发网   
核心提示: CAAAfrGeoCreationWkbHeader.CAAAfrCmd1Hdr.Icon.Normal = "I_CAACmd1";在CAAAfrGeoCreationWkbHeader.CATNls文件中设置新建按钮的标题以及提示内容CAAAfrGeoCreatio

CAAAfrGeoCreationWkbHeader.CAAAfrCmd1Hdr.Icon.Normal = "I_CAACmd1";

在CAAAfrGeoCreationWkbHeader.CATNls文件中设置新建按钮的标题以及提示内容

CAAAfrGeoCreationWkbHeader.CAAAfrCmd1Hdr.Category = "Element";

CAAAfrGeoCreationWkbHeader.CAAAfrCmd1Hdr.Title = "command1";

CAAAfrGeoCreationWkbHeader.CAAAfrCmd1Hdr.ShortHelp = "new cmd1";

添加两个工具条并插入一系列按钮的效果图如下面图4所示。

基于CATIA的界面二次开发方法与实例

 图4 、5 新添加的按钮    添加的菜单

3、添加菜单

菜单的添加与添加按钮类似,也是在CreateWorkbench()函数中,只不过是在宏中的参数与添加按钮并不一样。添加后的效果图如图5所示

NewAccess(CATCmdContainer, pCAAAfrGeoCreationMbr, CAAAfrGeoCreationMbr);

NewAccess(CATCmdContainer, pCATAfrInsertMnu, CATAfrInsertMnu);

SetAccessChild(pCAAAfrGeoCreationMbr, pCATAfrInsertMnu);

NewAccess(CATCmdSeparator, pCAAAfrGeoCreationInsertSep, CAAAfrGeoCreationInsertSep);

SetAccessChild(pCATAfrInsertMnu, pCAAAfrGeoCreationInsertSep);

NewAccess(CATCmdContainer, pCAAAfrMeu1EltSnu, CAAAfrMeu1EltSnu);

SetAccessNext(pCAAAfrGeoCreationInsertSep, pCAAAfrMeu1EltSnu);

NewAccess(CATCmdStarter, pCAAAfrMMeu1SubMn1Str, CAAAfrMMeu1SubMn1Str);

上一页  1 2 3 4 5 6 7  下一页

Tags:基于 CATIA 界面

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接