AutoCAD二次开发培训_讲义.ppt

  1. 1、本文档共183页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* Multiple Design Environment * State of the edit session * kicks off a fiber 每个文档创建 执行上下文是指命令所能涉及的功能范围。它分为文档上下文和应用程序上下文。处于文档上下文时,在该文档下运行的命令只能对 All registered commands and reactor callbacks are executed within a documents execution context. Windows messages and callbacks, and some acrxEntryPoint() messages are executed within the application context. * * Transaction 如果是DockControBar或modeless窗体, * 独占读取访问权 * Document will be exclusively locked when command is invoked. If this bit is not set, then the document will be share locked when the command is invoked. Required for multiple docs 在程序上下文中需要显式地锁定文档,但是在文档上下文,文档自动锁定 * can change (programmatically) * * Jig in AutoCAD is the functionality, Placing Entity interactively on the AutoCAD screen Provides graphical representation and allows user interaction by allowing to set an entities properties ? Provides programmer to access the AutoCAD drag mechanism. Provides graphical feedback information, each time user moves the pointing device, the application acquires a geometric value and provides graphical feedback for the pointing device event * * * * Experience It Before It’s Real * * * * * * * * * * * * * * * * * * * * * 1. 宿主程序创建有AcGiWorldDraw Host creates object implementing AcGiWorldDraw 2. Host creates object implementing AcGiViewportDraw 3. Host passes world-draw object to your drawable 4. Drawable draws viewport independent graphics 5. Host passes viewport-draw object to your drawable 6. Drawable draws viewport dependent graphics All graphical objects, both transient and persistent, will implement a drawable interface. Objects exposing this interface are capable of drawing themselves through the Draw API. * Viewport-dependent 和 viewport-independent graphics * * * * * * must be implemented for hatch to work If exploding to non-“native” objects return eExplodeAgain Hatch calls explode recursively until down to “native” entities (until eOk returned) * * * * * * * * * 反应器类从AcRxObject类中派生而来,而不是从AcDbObjct类派生

文档评论(0)

共享文档 + 关注
实名认证
内容提供者

二级建造师持证人

该用户很懒,什么也没介绍

领域认证该用户于2023年10月07日上传了二级建造师

1亿VIP精品文档

相关文档