This use case is intended to show how to create an add-in to a given workbench.CATIA CAA二次开发
Step Where LocalInterfaces and src CreateCommands method CreateToolbars method Create the add-in description class Create the command headers Create the add-in and arrange the commands
Provide the resources Resource files
[]
Creating the Add-in Description Class
1. Create the CAAAfrGeoOperationAdn.h file #include "CATBaseUnknown.h" // Needed to derive from CATBaseUnknown
class CATCmdContainer; // Needed by CreateToolbars
class CAAAfrGeoOperationAdn : public CATBaseUnknown
{
CATDeclareClass;
public:
CAAAfrGeoOperationAdn();
virtual ~CAAAfrGeoOperationAdn();
void CreateCommands();
CATCmdContainer * CreateToolbars();
};
2. Create the CAAAfrGeoOperationAdn.cpp file // Local Framework
#include "CAAAfrGeoOperationAdn.h"
// ApplicationFrame Framework
#include <CATCreateWorkshop.h> // To use NewAccess - SetAccess -
SetAccessChild ...
// Declaration of a new Command Header Class
#include "CATCommandHeader.h" // See MacDeclareHeader(CAAAfrGeoOperationAdnHeader);
CATImplementClass(CAAAfrGeoOperationAdn, DataExtension,
CATBaseUnknown, CAAAfrGeoOperationAddin);
#include <TIE_CAAIAfrGeoCreationWkbAddin.h>
CAAAfrGeoCreationWkbFactory TIE_CAAIAfrGeoCreationWkbFactory TIE class for the factory interface CAAIAfrGeoCreationWkbAddin Add-in interface exposed by the ...
插件的开发方法 2004-8-24 一、创建插件接口 1.1 头文件如: #ifndef CAAIAfrGeoCreationWkbAddin_h #define CAAIAfrGeoCreationWkbAddin_h // ApplicationFrame ...
CAAAfrGeoCreationWkbFactory TIE_CAAIAfrGeoCreationWkbFactory TIE class for the factory interface CAAIAfrGeoCreationWkbAddin Add-in interface exposed by the ...
2、CentralizeObjCreation2Factory Common ICommand FileClose FileClose FileOpen ...每个插件(Addin)均包括一个DLL与一个配置文件 ? 主系统检索插件目录及其所有子...
如果你在项目中添加 System.AddIn.dll 的引用,你就可以看到 System.AddIn 的名...(IAspect), AllowRecomposition = true, RequiredCreationPolicy= CreationPolicy....
(edge); nodeB.addInEdge(edge); Here two Nodes are created, and Edge is...to use the EdgeFactory class to automate edge creation and linking for you...
() // 方法,它实现很多接口 /** * Displays the shortcut creation dialog ...mRestoring) { final View view = createShortcut(info); mWorkspace.addIn...
4.TIE_CATIPrtWksAddin(NewAddin) : NewAddin 是一个 Component ,它实现了接口...2、 添加工具条及按钮 首先创建按钮的描述类 CAAAfrGeoCreationWkb ,派生于 ...
.com/blog/page/4/ 2014/4/15 RevitNetAddinWizard & NavisworksNetAddinWizard 页码,3/21 Here we go for the source code for the Round Tower creation. ...
Map Presentation—ArcObjects for map creation and display with symbology, ...ESRI Automatic Reference addin 开发控件类库 contains the MapControl, ...
热门文档