找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 410|回复: 4

[其他]:请问扩展数据到底是什么回事

[复制链接]
发表于 2003-9-8 14:19:21 | 显示全部楼层 |阅读模式

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

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

×
我是个新手不知道一个实体的扩展数据是什么回事情!请高手指点
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 1个

财富等级: 恭喜发财

发表于 2003-9-8 14:21:21 | 显示全部楼层
Inherits From

AcDbObject

Description

The AcDbXrecord class is a data storage class that was implemented primarily to allow ADSRX and AutoLISP programs a means to store data in pieces larger than the xdata's 16KB-per-object limit. Each AcDbXrecord object is capable of storing up to 2GB. By establishing an object's extension dictionary as the xrecord's owner, it's possible to associate large amounts of data with that object.
The input or output mechanism for the data is via a linked list of resbuf structures very similar to the way xdata is accessed on objects. Unlike xdata, however, xrecords work with the standard AutoCAD group codes which are all below 1000 in value. All the standard AutoCAD group codes are supported. This means that, in addition to all the normally used data types, an xrecord is capable of storing object IDs in any of the four types (hard owner, soft owner, hard pointer, soft pointer) which allows xrecords to own other objects, including other xrecords.

Include File

xrecord.h

Tips

AcDbXrecord is a built-in class, so xrecord obects are never proxies. On the other hand, xrecord data is directly accessible by other ADSRX and AutoLISP programs.
If data security is not an issue but always-available data (that is, never a proxy) is an issue, then xrecords are a good solution. If data security is an issue, then a custom data storage class is a better alternative.

See Also

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

使用道具 举报

发表于 2003-9-11 11:45:18 | 显示全部楼层
扩展数据和扩展记录相似。都是基于resbuf结果缓冲区。所增加的数据是字符串的形式。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2003-9-11 19:00:12 | 显示全部楼层
简单的说就是你可以往实体里存储和你程序有关的数据,之后可以在程序中通过读取这些数据来做你想做的事儿
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2005-11-14 10:55:43 | 显示全部楼层
就是添加额外的数据,比如小王画了一条线,小张画了一个圆,那我们希望程序能记住那条线是小王画的,圆是小张画的,那要实现这样的目的,就需要那样的扩展数据了
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-23 02:22 , Processed in 0.420802 second(s), 38 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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