2014-08-05 19:25:18|?次阅读|上传:huigezrx【已有?条评论】发表评论
关键词:C/C++, CAA, CATIA|来源:唯设编程网
在Serach workspace栏选择CATIA的安装路径,在下方的Interface(s) to implement栏选择CATIPrtWksAddin:

|
不要勾选下方的Search in prerequisite frameworks only! |
设置完成的状态如下图:

点击OK。解决方案的目录结构如下:

如果现在进行编译(mkmk),会提示如下错误:
.jpg)
1). NewAddin.h头文件
“NewAddin.h”头文件最终完成如下:
// COPYRIGHT Dassault Systemes 2013
//===================================================================
//
// NewAddin.h
// Provide implementation to interface
// CATIPrtWksAddin
//
//===================================================================
//
// Usage notes:
//
//===================================================================
//CAA2 Wizard Generation Report
//IMPLEMENTATION
// TIE: CATIPrtWksAddin
//End CAA2 Wizard Generation Report
//
// Apr 2013 Creation: Code generated by the CAA wizard Administrator
//===================================================================
#ifndef NewAddin_H
#define NewAddin_H
#include "CATBaseUnknown.h"
#include "CATCmdContainer.h"
//-----------------------------------------------------------------------
/**
* Class representing xxx.
*
* <br><b>Role</b>: Provide the basic class function...
* <p>
* It implements the interfaces :
* <ol>
* <li>@href CATIPrtWksAddin
* </ol>
*
* @href ClassReference, Class#MethodReference, #InternalMethod...
*/
class NewAddin: public CATBaseUnknown
{
CATDeclareClass;
public:
// Standard constructors and destructors for an implementation class
// -----------------------------------------------------------------
NewAddin ();
virtual ~NewAddin ();
void CreateCommands();
CATCmdContainer * CreateToolbars();
private:
// The copy constructor and the equal operator must not be implemented
// -------------------------------------------------------------------
NewAddin (NewAddin &);
NewAddin& operator=(NewAddin&);
};
//-----------------------------------------------------------------------
#endif