iCAx开思工具箱

标题: 【求助】CATIA菜单创建不成功源码求助 [打印本页]

作者: liuruixiao205    时间: 2004-11-29 14:33
标题: 【求助】CATIA菜单创建不成功源码求助
  我想在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");
         
作者: liuruixiao205    时间: 2004-11-30 09:09
   大虾们,帮帮忙。谢谢!




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3