CATIA CAA编程简介 [英] Introduction to CATIA CAA programming

查看:358
本文介绍了CATIA CAA编程简介的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要开始在CATIA CAA中工作,我正在寻找在线入门课程。 从上一篇文章看来,可用的资源并不多。

I need to start working in CATIA CAA and I am looking for an online introductory course. From a previous post, there doesn't seem to be much available .

我发现的所有内容都是凌乱的文档,我开始从该文档中进行挖掘:

All I found is the quite messy documentation which I started digging from:

 CATIA_INSTALLATION_DIR/CAADoc/Doc/online/CAADocUseCases/CAADocRunSample.htm

有任何提示吗?

推荐答案

不幸的是,像许多专有API一样,它仅随附于软件编辑器示例和文档,并且缺少在线社区来帮助您获得开始...

Unfortunately, like many proprietary APIs, it only comes with the software editor examples and documentation and lacks online community to help you getting started...

对于CAA,我们将API文档称为百科全书。入口点(对于V5-6)是CATIA_INSTALLATION_DIR / CAADoc / Doc / online / CAACenV5Default.htm

For CAA, we call the API documentation the Encyclopaedia. The entry point (for V5-6) is rather CATIA_INSTALLATION_DIR/CAADoc/Doc/online/CAACenV5Default.htm

现在您可以在许多方面使用CAA,几乎所有方面其中包括:从数据模型定制(Object Specs Modeler也称为功能)到通过几何和拓扑的各个方面进行可视化。 CATIA的主要工作台提供自己的API层(零件设计,装配体等)。

Now there are many aspects you can work using CAA, almost all of them : from data model customization (Object Specs Modeler also called "Features") to visualization through all aspects of geometry and topology. Main CATIA workbenches provide their own layer of APIs (Part Design, Assembly, etc.)

现在要准备就绪,您将需要Visual Studio(例如,如果您使用2008,在R20和R24之间工作),然后您将在其顶部安装ENOVIA STUDIO,基本上这是Visual中的一组插件,可让您创建,检查,测试和编译源和资源。

Now to get ready, you will need a Visual Studio (2008 for example if you are working between R20 and R24) on top of which you will install the ENOVIA STUDIO which is basically a set of addins within visual, that will allow you to create, check, test and compile source and resources.

如果安装后在VS启动时没有弹出任何提示,请退出并转到ENOVIA_STUDIO_INSTALLATION_DIR / intel_a / code / bin并启动CATVBTSetup。
您应该在Visual Studio 2008中有一个复选框(如果您需要的是该版本)。选中它,然后单击安装。它应该注册正确的内容,并在下次VS启动时弹出一个蓝色的CAA提示对话框。

If after install you do not have anything popin up at VS launch, quit it and go to ENOVIA_STUDIO_INSTALLATION_DIR/intel_a/code/bin and launch CATVBTSetup. You should have a checkbox with visual studio 2008 (if that's the version you need.) Check it and click Install. It should register the right stuff and pop up a blue CAA tips dialog box at next VS launch.

在那里,看看CATIA_INSTALLATION_DIR / CAADoc:所有目录都结束了.edu是工作代码框架(框架是CAA中一组功能相关对象的最高容器),涵盖了百科全书的所有示例。实际上,您会发现更多,因为很多代码经常比教程或技术文章讲得多。

Once there, take a look within CATIA_INSTALLATION_DIR/CAADoc : all the directories ending with .edu are working code frameworks (a framework is the highest container for a group of functionnaly related objects in CAA) covering all examples for the encyclopaedia. You will find a lot more actually, since a good chunk of code often talks a lot more than a tutorial or technical article.

要尝试此代码(以及您的ENOVIA顺便说一下,安装STUDIO),您可以创建一个目录MYWORKSPACE,您可以在其中放置您感兴趣的框架(如果需要,可以全部使用:D)

To try out this code (and your ENOVIA STUDIO installation by the way), you can create a directory MYWORKSPACE where you can put the frameworks that interest you (all of them if you want :D )


  1. 现在转到VS,文件->打开CAA工作区。浏览到您的MYWORKSPACE目录。选择一个级别(与您使用的CATIA版本匹配),然后单击确定。 ENOVIA STUDIO插件(ES)将创建VS元数据,以便您将所有框架和模块(框架的代码子组件)作为项目在左侧的解决方案资源管理器中获取。

  1. Now go to VS, File->Open CAA Workspace. Browse to your MYWORKSPACE directory. Pick up a "level" (matching the CATIA release you are working with) and click OK. ENOVIA STUDIO Addin (ES) will create the VS metadata so that you get all Frameworks and modules (framework's code sub-components) as projects within the solution explorer on the left.

现在转到CAAV5工作区->找到必备工作区并添加CATIA_INSTALLATION_DIR(应同时安装CATIA和CAA API)

Now go to CAAV5 Workspace-->Locate Prerequisite Workspaces and Add the CATIA_INSTALLATION_DIR (where you should have both CATIA and CAA API installed)

现在做Build-> mkmk。检查更新和调试。在其他选项中添加-jobs 4(以使构建更快)

Now do Build-->mkmk. check update and debug. Add -jobs 4 in Other Options (so that the build gets faster)

最后但并非最不重要的是,更新运行时视图(这意味着ES将复制资源工作空间中intel_a / win_b64中工作空间中的每个框架的内容,CATIA将在运行时读取它们以查找图标,接口实现绑定等。)

Last but not least, update the runtime view (meaning that ES will copy the resources of each framework in your workspace in the intel_a/win_b64 of you workspace which will be read by CATIA at runtime to find icons, interface implementation binding, etc.)

您现在可以通过Ctrl + F5执行CATIA(如果要进行交互)。如果它没有启动,请在左侧的解决方案资源管理器中以粗体显示该项目。右键点击。属性。在树中,选择调试,然后在命令字段中导航到MYWORKSPACE\intel_a(或win_b64)\code\bin\cnext.exe。

You can execute CATIA now (if you want to go interactive) by Ctrl+F5. If it does not start, go to the project in bold characters in the Solution Explorer on the left. Right click. Properties. In the tree select Debug and in the Command field navigate to MYWORKSPACE\intel_a (or win_b64)\code\bin\cnext.exe.

最后但并非最不重要的一点,在这里问您的问题,这是CAA社区从SO能力中受益的时候了:)

Last but not least, ask your questions here, it is way time that CAA community benefits from SO power :)

这篇关于CATIA CAA编程简介的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆