caa用户界面开发——实例说明(catia二次开发)

caa用户界面开发——实例说明(catia二次开发)

ID:14693322

大小:323.00 KB

页数:18页

时间:2018-07-29

caa用户界面开发——实例说明(catia二次开发)_第1页
caa用户界面开发——实例说明(catia二次开发)_第2页
caa用户界面开发——实例说明(catia二次开发)_第3页
caa用户界面开发——实例说明(catia二次开发)_第4页
caa用户界面开发——实例说明(catia二次开发)_第5页
资源描述:

《caa用户界面开发——实例说明(catia二次开发)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、用户界面开发——实例说明——CreatingaWorkbench一、目标1.1目标Showinghowtocreateaworkbenchtobeaddedtoagivenworkshop.1.2显示界面(workbench)Liketheworkshop,theworkbenchisanobjectthatgathersthecommandstoworkonthedocumentandarrangethemintoolbarsandmenus.1.3命令标签(commandheader)Commandheadersareusedtomakethelin

2、kbetweentheworkbenchandthecommands.二、CAAAfrGeoCreationWbench实例说明2.1功能TheCAAAfrGeoCreationWbenchusecasecreatesaworkbenchnamedCAAGeometricalCreationfortheCAAGeometrydocument.Itsspecificationscovermostofthecasesyouwillmeet.Twotoolbarsareprovided:TheSolidstoolbar.Itincludesfivenewcom

3、mands:Cuboid,Sphere,Torus,andCylinder1and2.TheSurfacestoolbar.Itincludesthreenewcommands:RevolutionSurface,NurbsSurface,andOffsetSurface.TheonlychangeinthemenubaristheadditionofthesecommandsintheInsertmenuusingtwosubmenusbelowtheexistingones.182.2运行运行CATIA系统,并依次选择Start->Infrastru

4、cture->CAAV5:GeometricalCreation:ThiscreatesanewCAAGeometrydocumentwiththeCAAV5:GeometricalCreationworkbenchactive.2.3框架组成CAAAfrGeoCreationWkbWorkbenchdescriptionclassCAAAfrGeoCreationWkbFactoryFactoryclassfortheworkbenchclassCAAIAfrGeoCreationWkbFactoryFactoryinterfaceimplemente

5、dbyCAAAfrGeoCreationWkbFactoryTIE_CAAIAfrGeoCreationWkbFactoryTIEclassforthefactoryinterfaceCAAIAfrGeoCreationWkbAddinAdd-ininterfaceexposedbytheworkbenchandthatallitsadd-insmustimplementTIE_CAAIAfrGeoCreationWkbAddinTIEclassfortheadd-ininterface三、程序结构(Step-by-Step)3.1编程准备3.1.1确认

6、·MakesurethattheworkshoptowhichitisdedicatedexposestheCATIxxxConfigurationinterface,wherexxxistheworkshopidentifier,inaPublicInterfacesorProtectedInterfacesdirectory.·CreatethemoduledirectorytostoretheworkbenchcodealongwithitstwosubdirectoriesLocalInterfacesandsrc.Thenyouwillneed

7、tocreatethefollowingfiles.Intheframework'sProtectedInterfacesdirectory CAAIAfrGeoCreationWkbAddin.hTheheaderfileoftheworkbenchexposedinterfacetoenableclientstocreateadd-insIntheCAAAfrGeoCreationWbench.mLocalInterfacesdirectory CAAIAfrGeoCreationWkbFactory.hTheheaderfileofthework

8、benchfactoryinterface CAAAfrGeoCreationW

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。