找回密码 注册 QQ登录
一站式解决方案

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?快速3D打印 手板模型CNC加工服务在线3D打印服务,上传模型,自动报价
查看: 16118|回复: 1
打印 上一主题 下一主题

【求助】CATIA菜单创建不成功源码求助

[复制链接]
跳转到指定楼层
1
发表于 2004-11-29 14:33:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多同行朋友,交流,分享,学习。

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

x
  我想在insert和tools里面加一个solide子菜单,我做完insert后,直接复制再把insert改为tools,为什么只在insert里面挂上了,tools里面没有。代码如下:
  NewAccess(CATCmdContainer,pCAAAfrGeoCreationMbr,First);
  
      //---------------------------------
      //  Insert menu: new items to merge  
      //---------------------------------
      NewAccess(CATCmdContainer,pCATAfrInsertMnu,CATAfrInsertMnu);
      SetAccessChild(pCAAAfrGeoCreationMbr,pCATAfrInsertMnu);
  
         //----------------------
         //  A separator  
         //----------------------
         NewAccess(CATCmdSeparator,pCAAAfrGeoCreationInsertSep,CAAAfrGeoCreationInsertSep);
         SetAccessChild(pCATAfrInsertMnu,pCAAAfrGeoCreationInsertSep);
  
         //----------------------
         //  Solid Sub Menu  
         //----------------------
         NewAccess(CATCmdContainer,pCAAAfrSolidEltSnu,CAAAfrSolidEltSnu);
         SetAccessNext(pCAAAfrGeoCreationInsertSep,pCAAAfrSolidEltSnu);
  
            NewAccess(CATCmdStarter,pCAAAfrMSolidCuboidStr,CAAAfrMSolidCuboidStr);
            SetAccessChild(pCAAAfrSolidEltSnu,pCAAAfrMSolidCuboidStr);
            SetAccessCommand(pCAAAfrMSolidCuboidStr,"CAAAfrCuboidHdr");
  
            NewAccess(CATCmdStarter,pCAAAfrMSolidSphereStr,CAAAfrMSolidSphereStr);
            SetAccessNext(pCAAAfrMSolidCuboidStr,pCAAAfrMSolidSphereStr);
            SetAccessCommand(pCAAAfrMSolidSphereStr,"CAAAfrSphereHdr");
  NewAccess(CATCmdContainer,pCATAfrToolsMnu,CATAfrToolsMnu);
      SetAccessNext(pCATAfrInsertMnu,pCATAfrToolsMnu);
  
         //----------------------
         //  A separator  
         //----------------------
         NewAccess(CATCmdSeparator,pCAAAfrGeoCreationToolsSep,CAAAfrGeoCreationToolsSep);
         SetAccessChild(pCATAfrToolsMnu,pCAAAfrGeoCreationToolsSep);
  
         //----------------------
         //  Solid Sub Menu  
         //----------------------
         NewAccess(CATCmdContainer,pCAAAfrSolidEltSnu,CAAAfrSolidEltSnu);
         SetAccessNext(pCAAAfrGeoCreationToolsSep,pCAAAfrSolidEltSnu);
  
            NewAccess(CATCmdStarter,pCAAAfrMSolidCuboidStr,CAAAfrMSolidCuboidStr);
            SetAccessChild(pCAAAfrSolidEltSnu,pCAAAfrMSolidCuboidStr);
            SetAccessCommand(pCAAAfrMSolidCuboidStr,"CAAAfrCuboidHdr");
  
            NewAccess(CATCmdStarter,pCAAAfrMSolidSphereStr,CAAAfrMSolidSphereStr);
            SetAccessNext(pCAAAfrMSolidCuboidStr,pCAAAfrMSolidSphereStr);
            SetAccessCommand(pCAAAfrMSolidSphereStr,"CAAAfrSphereHdr");
         
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
2
发表于 2004-11-30 09:09:25 | 只看该作者
   大虾们,帮帮忙。谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2024-12-23 17:53 , Processed in 0.026095 second(s), 13 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表