3.2、ObjectARX开发基础例子程序
来源:互联网 发布:西方中心论 知乎 编辑:程序博客网 时间:2024/05/16 08:30
下面实现了应用程序加载和卸载时用到的函数。其中初始化的过程中向AutoCAD中注册了两个新命令:CREATE 和ITERATE。他同时初始化了一个自定义类AsdkMyClass并且通过调用acrxBuildClassHierarchy()函数将他添加到运行时类的结构当中。(关于AsdkMyClass 的描述,一个自定义类的例子参考第12.6节)
// The initialization function called from the acrxEntryPoint()// function during the kInitAppMsg case is used to add commands// to the command stack and to add classes to the ACRX class// hierarchy.//voidinitApp(){ acedRegCmds->addCommand("ASDK_DICTIONARY_COMMANDS",//组名 "ASDK_CREATE", "CREATE", ACRX_CMD_MODAL,//命令名,命令名,命令类型 createDictionary);//命令对应的函数 acedRegCmds->addCommand("ASDK_DICTIONARY_COMMANDS", "ASDK_ITERATE", "ITERATE", ACRX_CMD_MODAL, iterateDictionary); AsdkMyClass::rxInit();//自定义类的初始化 acrxBuildClassHierarchy();//新加类添加到运行时类结构中}// The cleanup function called from the acrxEntryPoint() // function during the kUnloadAppMsg case removes this application's// command set from the command stack and removes this application's// custom classes from the ACRX runtime class hierarchy.//voidunloadApp(){ acedRegCmds->removeGroup("ASDK_DICTIONARY_COMMANDS");//移除命令组 // Remove the AsdkMyClass class from the ACRX runtime // class hierarchy. If this is done while the database is // still active, it should cause all objects of class // AsdkMyClass to be turned into proxies. // deleteAcRxClass(AsdkMyClass::desc());//自定义类移除}
0 0
- 3.2、ObjectARX开发基础例子程序
- ObjectARX文档设置和ObjectARX标准程序
- ObjectARX的基础
- .net 开发ObjectARX 学习
- ObjectARX开发Autocad
- 使得ObjectARX程序支持UCS
- AutoCAD.net(三)用VS.NET2005开发ObjectARX程序 调试方法
- ObjectARX开发心得(1)
- AutoCAD ObjectARX 开发环境组合
- objectarx开发的环境设置
- ObjectARX
- ObjectArx编程(二) ------ 手动配置ObjectARX开发环境
- 基础的控件开发例子
- ---基础的控件开发例子---
- ObjectARX 人机交互技术模拟原型程序介绍
- 3.1.4、ObjectARX程序的初始化
- ObjectARX程序之DLLMain()和acrxEn…
- 二、根据向导创建ObjectARX 程序
- StatisticsVariable
- 指针数组(二级指针的第一种内存模型)
- 2014年7月21日 你真的适合出国吗
- 敏捷开发
- USB接口爆发严重安全漏洞
- 3.2、ObjectARX开发基础例子程序
- 跨域加载资源的蛋疼
- hdu 4911 Inversion 树状数组求逆序数对
- Antimatter Ray Clearcutting - UVa 11008 状压dp
- System.totalMemory有点小坑
- 添加功能区按钮Ribbon Button到SP2010特定列表或库
- LCA+poj1470
- hdu1242Rescue之广搜~哎~加优先队列。
- LogMath