您好,欢迎光临本网站![请登录][注册会员]  
文件名称: [C++]ObjectARX2006实例教程.pdf
  所属分类: 其它
  开发工具:
  文件大小: 610kb
  下载次数: 0
  上传时间: 2010-03-18
  提 供 者: hgl544******
 详细说明: 目 录 开始前的准备.....................................................................................................................................1 实例1.创建项目和注册Hello 命令..................................................................................................1 本节目标.....................................................................................................................................1 1.1 创建一个ObjectARX 项目....................................................................................................1 1.2 设置编译器 ...........................................................................................................................2 1.3 设置链接器...........................................................................................................................2 1.4 添加代码...............................................................................................................................4 1.4.1 创建一个新的cpp 文件............................................................................................4 1.4.2 添加代码....................................................................................................................4 1.5 创建DEF 文件........................................................................................................................5 1.5.1 创建一个新的def 文件............................................................................................5 1.5.2 添加代码....................................................................................................................6 1.6 编译和运行Step01...............................................................................................................6 实例2.用ObjectARX 向导创建项目..................................................................................................7 本节目标.....................................................................................................................................7 2.1 安装ObjectARX 向导............................................................................................................7 2.2 用向导创建ObjectARX 项目................................................................................................7 2.3 用ObjectARX 向导添加命令................................................................................................8 2.4 ObjectARX 向导的Autodesk 类管理器............................................................................10 2.5 ObjectARX 的头文件..........................................................................................................11 2.6 用ObjectARX 获得输入......................................................................................................11 2.6.1 ObjectARX 提供的输入函数:..............................................................................11 2.6.2 ObjectARX 提供的实体选择函数:......................................................................12 2.7 给命令添加代码..................................................................................................................12 2.7.1 给myInput 函数添加代码......................................................................................12 2.7.2 给mySelect 函数添加代码....................................................................................13 2.8 编译和执行命令..................................................................................................................13 实例3.符号表..................................................................................................................................15 本节目标...................................................................................................................................15 3.1 创建应用函数的头文件和执行文件..................................................................................15 3.1.1 自定义createLayer()函数的实现.......................................................................16 3.1.2 createLayer()函数的算法...................................................................................16 3.1.3 createLayer()函数的代码...................................................................................16 3.1.4 自定义createBlockRecord()函数的实现...........................................................17 3.1.5 createBlockRecord()函数的算法.......................................................................17 3.1.6 EMPLOYEE 块的参数定义........................................................................................18 3.1.7 createBlockRecord()函数的代码.......................................................................18 3.2 实现CREATE 和SETLAYER 命令.........................................................................................20 3.2.1 CREATE 命令的算法................................................................................................21 3.2.2 CREATE 命令的代码................................................................................................21 ObjectARX2006 实例教程 - ii - 3.2.3 SETLAYER 命令的算法............................................................................................21 3.2.4 SETLAYER 命令的代码............................................................................................22 3.3 测试CREATE 和SETLAYER 命令..........................................................................................24 实例4.命名对象词典_Xrecords......................................................................................................25 本节目标...................................................................................................................................25 4.1 实现ADDENTRY,LISTENTRIES 和REMOVEENTRY 命令......................................................26 4.1.1 ADDENTRY 命令的算法............................................................................................26 4.1.2 ADDENTRY 命令的代码............................................................................................26 4.1.3 LISTENTRIES 命令的算法......................................................................................28 4.1.4 LISTENTRIES 命令的代码......................................................................................28 4.1.5 REMOVEENTRY 命令的算法......................................................................................29 4.1.6 REMOVEENTRY 命令的代码......................................................................................30 4.2 测试ADDENTRY,LISTENTRIES 和REMOVEENTRY 命令......................................................31 实例5.定制对象_扩展词典..............................................................................................................32 本节目标...................................................................................................................................32 5.1 创建一个ObjectDBX (*.dbx)模式的子项目...................................................................33 5.2 创建EmployeeDetails 类..................................................................................................33 5.3 给AsdkEmployeeDetails 类添加成员变量和成员函数..................................................34 5.3.1 添加成员变量..........................................................................................................34 5.3.2 修改构造函数..........................................................................................................34 5.3.3 添加成员函数..........................................................................................................35 5.3.4 完善成员函数..........................................................................................................35 5.4 初始化AsdkEmployeeDetails 类......................................................................................36 5.4.1 在加载ObjectDBX 组件时注册该类......................................................................36 5.4.2 编译ObjectDBX 组件..............................................................................................37 5.5 实现ADDDETAIL,LISTDETAILS 和REMOVEDETAIL 命令..................................................37 5.5.1 ADDDETAIL 命令的算法..........................................................................................37 5.5.2 ADDDETAIL 命令的代码..........................................................................................37 5.5.3 LISTDETAILS 命令的算法......................................................................................40 5.5.4 LISTDETAILS 命令的代码......................................................................................40 5.5.5 REMOVEDETAIL 命令的算法....................................................................................43 5.5.6 REMOVEDETAIL 命令的代码....................................................................................43 5.6 加载AsdkEmployeeDetails.dbx 的ObjectDBX 组件.....................................................45 5.6.1 创建2 个def 文件..................................................................................................45 5.6.2 把AsdkEmployeeDetails 对象加入命令模块......................................................46 5.7 测试AsdkEmployeeDetails.dbx 和AsdkStep05.arx 应用...........................................46 实例6.定制实体...............................................................................................................................47 本节目标...................................................................................................................................47 6.1 创建一个ObjectDBX (*.dbx)模式的子项目...................................................................47 6.2 创建AsdkEmployee 类........................................................................................................47 6.3 给AsdkEmployee 类添加成员函数....................................................................................47 6.3.1 给AsdkEmployee 类添加成员变量........................................................................47 6.3.2 给AsdkEmployee 类添加初始化代码....................................................................49 6.3.3 编译ObjectDBX 组件..............................................................................................50 ObjectARX2006 实例教程 - iii - 6.4 实现CREATEEMPLOYEE 命令................................................................................................50 6.4.1 CREATEEMPLOYEE 命令的实现................................................................................50 6.4.2 加载AsdkEmployee.dbx ObjectDBX 组件...........................................................50 6.5 测试AsdkEmployee.dbx 和AsdkStep06.arx 应用.........................................................50 实例7.临时反应器...........................................................................................................................51 本节目标...................................................................................................................................51 7.1 准备文档数据......................................................................................................................51 7.2 为项目加入和实现编辑反应器..........................................................................................52 7.2.1 调用ObjectARX 反应器向导..................................................................................52 7.2.2 实现基类AcEditorReactor 的虚拟函数..............................................................53 7.2.3 给commandWillStart()添加代码.........................................................................54 7.2.4 给commandEnded ()添加代码...............................................................................55 7.2.5 创建AsdkEdEmployeeReactor 反应器实例..........................................................55 7.3 为项目加入和实现对象反应器..........................................................................................56 7.3.1 创建对象反应器......................................................................................................56 7.3.2 实现openedForModify()函数...............................................................................56 7.3.3 给openedForModify()添加代码...........................................................................56 7.3.4 创建AsdkEmployeeReactor 反应器的]实例........................................................57 7.4 实现应用函数......................................................................................................................58 7.4.1 应用函数attachEmployeeReactorToAllEmployee()的实现.............................58 7.4.2 应用函数detachEmployeeReactorToAllEmployee()的实现.............................58 7.5 为应用加入和实现数据库反应器......................................................................................59 7.5.1 创建数据库反应器..................................................................................................59 7.5.2 实现objectAppended()函数.................................................................................59 7.5.3 加入指针变量..........................................................................................................59 7.5.4 创建数据库反应器的实例......................................................................................59 7.5.5 创建AsdkDbEmployeeReactor 对象......................................................................59 7.6 测试应用.............................................................................................................................60 祝贺...................................................................................................................................................60 ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: C++ ObjectARX 2006
 输入关键字,在本站1000多万海量源码库中尽情搜索: