欢迎来到天天文库
浏览记录
ID:50115871
大小:702.00 KB
页数:22页
时间:2020-03-04
《CATIA CAA应用开发的过程与方法.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、.应用开发的过程与方法命名方法详见《应用开发中的命名规则》一、系统安装与环境配置1.1系统安装1.1.1VC++1.1.2CATIA1.1.3组建应用接口(CAA)1.1.4快速应用开发环境(RADE)1.2应用开发环境配置二、目录结构的建立2.1创建工作空间(Workspace)InMicrosoftDeveloperStudioopenmenu"File"andselect"OpenCAAV5Workspace",thefollowingwindowappearsinwhichyoucanselecttoopenyourworkspacewiththe"
2、mkmk"functionalities.页脚.EithermodewillgiveyouaccesstotheCodeGeneratorfeatures.Onceyouhavefilledintheworkspaceinformation,clickon"OK".Alogwindowappearswhileyourenvironmentisupdatedandtheworkspaceopened.WhenthiswindowhasdisappearedDeveloperStudioloadstheprojectfilesitstoredinyourwork
3、spaceandyouarereadytowork.ThecommandsavailableintheCodeGeneratorareasetofwizardswhereinyouspecifyaseriesofparametersanditwillgeneratecodeforyou.Beforecreatingthecode,areportwindowappearssothatyoumayverifythatthecodegeneratedisasyouexpectit.页脚.Youmayfindthatsomeofthegeneratedsourcef
4、ilescontaincommentedoutstatementssuchas"DONOTEDIT::THECAA2WIZARDSWILLINSERTCODEHERE".Donotmodifywhatyoufindbetweenthesecommentedlinesorthewizardswillnolongerbeabletoinsertcodeinthesourcefile.页脚.2.2定义组件框架(CAAV5Framework/ImplementationFramework)InMicrosoftDeveloperStudio,openmenu"Pro
5、ject"andselect"NewFramework…" Thewizardwillthencreatethefollowingdirectorystructure:Educationtypeframeworksaresuffixed".edu"andTestframeworksaresuffixed".tst".Thewizardappendsthesesuffixestothenameoftheframework.页脚.2.3定义接口空间(InterfaceFramework)Aninterfaceframeworkisaframeworkthatco
6、ntains(mainly)interfacesinbothC++orIDLlanguage.Thestructureofthisinterfaceisveryspecific.V5namingconventionsrequiresthattheseinterfacesbedistinguishablethroughan"Interfaces"suffix.Thereforeifyoutypein"Bird"intheframeworkname,thegeneratedframeworkwillbecalled"BirdInterfaces".Thegene
7、ratedstructureisthefollowing:Afterthefilestructurehasbeencreated,theC++InteractiveDashboardupdatesyourDeveloperStudioprojecttotakeintoaccountthenewfilesanddirectories.IntheJavaInteractiveDashboard,youwillseethenewframeworkintheworkspacetreeview.Notethattheframeworkissetasthecurrent
8、lyactiveproject.2.4定义模块(Mo
此文档下载收益归作者所有