2014-08-05 19:44:24|?次阅读|上传:huigezrx【已有?条评论】发表评论
关键词:CAA, CATIA|来源:唯设编程网
在CAA二次开发过程中,有一些命令(菜单)我们经常使用,本文介绍在CAA实际开发过程中使用非常频繁的操作及命令的使用方法和注意事项:
使用文件->New CAA V5 Workspace...命令,可以新建一个工作空间:
.jpg)
使用文件->New CAA V5 Workspace...命令,可以打开一个已经存在的工作空间。
使用CAAV5 Workspace->Locate Prerequisite Workspaces...命令,可以引入外部工作空间(每一个CATIA的CAA程序都必须引入CATIA工作空间,即CATIA所在的安装目录):
.jpg)
使用文件->Add CAAV5 Project->New Framework...命令,可以新建一个Framework:
.jpg)
激活一个Framework,然后使用文件->Add CAAV5 Project->New Module...命令,可以在其中新建一个Module。
使用CAAV5 Workspace->Define Prerequisite Frameworks...命令,可以定义需要包含的框架(Frameworks):
.jpg)
执行该功能也可以直接在IdentityCard.h中手动加入引入代码,下面是一个IdentityCard.h的完整源码:
// COPYRIGHT Dassault Systemes 2013
//===================================================================
//
// IdentityCard.h
// Supplies the list of prerequisite components for framework FrmCAALearn
//
//===================================================================
//
// Usage notes:
// For every prereq framework FW, use the syntax:
// AddPrereqComponent ("FW", Public);
//
//===================================================================
//
// Apr 2013 Creation: Code generated by the CAA wizard Administrator
//===================================================================
// DO NOT EDIT :: THE CAA2 WIZARDS WILL ADD CODE HERE
AddPrereqComponent("CATTPSInterfaces",Public);
AddPrereqComponent("DraftingInterfaces",Public);
AddPrereqComponent("SketcherInterfaces",Public);
AddPrereqComponent("Mathematics",Public);
AddPrereqComponent("NewTopologicalObjects",Public);
AddPrereqComponent("GeometricObjects",Public);
AddPrereqComponent("ProductStructure",Public);
AddPrereqComponent("MecModInterfaces",Public);
AddPrereqComponent("ObjectModelerBase",Public);
AddPrereqComponent("ObjectSpecsModeler",Public);
AddPrereqComponent("ApplicationFrame",Public);
AddPrereqComponent("DialogEngine",Public);
AddPrereqComponent("Dialog",Public);
AddPrereqComponent ("VisualizationBase",Public);
AddPrereqComponent("Visualization",Public);
AddPrereqComponent("InfInterfaces",Public);
AddPrereqComponent("System",Public);
// END WIZARD EDITION ZONE