找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 3562|回复: 10

理解ObjectDBX(附例子程序)

[复制链接]

已领礼包: 145个

财富等级: 日进斗金

发表于 2002-1-8 15:16:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
Question
What is the difference between an ObjectARX application and an ObjectDBX
application? What is an object enabler (or ObjectDBX module)? What is the
appropriate Software Development Kit (SDK) to develop an ObjectDBX module:
ObjectARX or ObjectDBX?
Answer
One of the most robust features of the ObjectARX technology, introduced with
AutoCAD Release 13, is that it enables thirdy party AutoCAD developers to add
new object types (also called "custom objects") to the set of standard objects
defined by AutoCAD, such as line, circle, layer, etc.

For example, an AEC software developer will typically want to define a wall or a
building schedule object, a Mechanical software developer will want to define
part and assembly objects, and so on.  In order to manipulate such objects,
which are not one of its native objects, AutoCAD needs to delegate to the
defining ObjectARX application. For example, AutoCAD will "ask" the parent
ObjectARX application to output the necessary geometry in order to represent an
instance of the new object because it does not know what it should look like.

Because these objects can be persistent, which means they are saved in a
drawing, there is a potential problem when such a drawing is opened in AutoCAD
and the parent ObjectARX application is not loaded or not present. How should
AutoCAD represent such objects? How should it move, rotate or copy them? In
order to solve this problem, the ObjectARX technology also introduced the
concept of a proxy object, which is a special AutoCAD-native database object
capable of providing a default representation and behavior of an unknown object
in a drawing database. However, when the parent application is not present, the
default representation and behavior supplied by the proxy object is limited, and
sometimes not satisfactory.

The concept of object enabler is the answer to the proxy object limitations. An
object enabler is an application developed by the custom object provider, which
is the AutoCAD third party developer, and contains the object definition itself.
This object definition is enough to provide the object with the expected
behavior when the drawing is loaded, but typically does not allow sophisticated
editing (editing beyond standard move, copy, rotate, etc.). The definition of
this "minimum" behavior belongs in a large extent to the application developer
who can decide to provide more or fewer capabilities to his objects when the
full parent application is not present.

Therefore, it is recommended that an ObjectARX application defining custom
object(s) isolate the object definition(s) in an object enabler module, which is
a module that is distributed freely to users manipulating drawings containing
such custom objects.

With the introduction of the DWG Unplugged technology, which has been renamed to
ObjectDBX technology, Autodesk has also enabled third party developers to write
applications capable of reading and writing AutoCAD drawing databases (.DWG
files) without AutoCAD having to be present. Therefore, the ObjectDBX technology
is independent of the AutoCAD editor, which means a call is not made to
acad.exe. To think of it in another way, ObjectDBX can be viewed as ObjectARX
without the editor -specific API (typically the Aced classes and global
functions).

Object enablers, which should also be able load into such applications because
they are capable of reading and writing .DWG files, should also be independent
of the AutoCAD editor and use the ObjectDBX technology.

"ObjectDBX module" refers to the ObjectDBX component of an ObjectARX application
defining custom object(s). An ObjectDBX module, just like an ObjectARX
application, is a Dynamic-LinkLibrary (DLL). Applications developed using the
ObjectDBX SDK are capable of loading object enablers -- ObjectDBX modules -- and
are called ObjectDBX host applications. AutoCAD itself is an ObjectDBX host
application, and actually uses the very same technology provided in the
ObjectDBX SDK.

The ObjectARX SDK can produce both ObjectARX applications and ObjectDBX modules.
Both are DLLs and both export the acrxEntryPoint() function. The difference
between the two is essentially that ObjectARX applications link into libraries
that make them dependent on AutoCAD (they import functions from acad.exe), while
ObjectDBX modules do not. The AutoCAD-dependent libraries are:

        acad.lib
        acedapi.lib
        acsiobj.lib
        acui15.lib
        oleaprot.lib
        rxheap.lib

The ObjectARX SDK cannot produce ObjectDBX host applications; only the ObjectDBX
SDK can be used, which is subject to a special licensing agreement.

Please see the attached document for more information on the ObjectDBX security
issues.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2003-9-18 17:37:24 | 显示全部楼层
请问晓东管理员,能否再上传附件,我需要!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 1个

财富等级: 恭喜发财

发表于 2003-9-19 08:33:22 | 显示全部楼层
下在不了
我也需要,谢谢
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-1-1 16:18:48 | 显示全部楼层
附件下载不了,请xd再上传几个DBX的例子!!!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-1-5 13:42:15 | 显示全部楼层
版主很久前发的帖子,那里面的文件好像都不在了,我也下了一次下不下来,花了二个金币了。没想到还能顶成这样!:)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-4-11 19:41:27 | 显示全部楼层
好像不能下载啊,怎么回事啊
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-4-23 20:32:47 | 显示全部楼层
下不来啊
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-4-25 17:12:46 | 显示全部楼层
XD出来换一下附件啊
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-4-27 11:28:00 | 显示全部楼层
请问晓东管理员,能否再上传附件,我需要!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-6-3 12:44:21 | 显示全部楼层
怎么都下载不了???
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-6-7 17:18:23 | 显示全部楼层
好像不能下载
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-22 16:45 , Processed in 0.180580 second(s), 53 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表