CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2025 开发者帮助

Use AcDbObject XDATA and Extension Dictionaries Conservatively

2024-5-18 19:26| 发布者: admin| 查看: 123| 评论: 0|原作者: admin|来自: AutoCAD

Use AcDbObject XDATA and Extension Dictionaries Conservatively

水平

要求

适用于

ObjectARX, .NET and ObjectDBX modules

XDATA and extension dictionaries provide a means of augmenting database objects with data and other objects (via hard ownership). Both the XDATA facilities and extension dictionaries are intended to be used by multiple applications as needed. XDATA has a limitation of 16K bytes per object, to be shared by all applications.

For objects that are accessible by all applications, such as entities in block table records and symbol table records, applications should not consume more than 2K bytes of XDATA, and must not consume more than 4K bytes of XDATA. If they need more data than this, consider moving the data to a custom object or an AcDbXrecord in the extension dictionary.

Extension dictionary entries have no maximum size restriction, but there is a memory tradeoff in using extension dictionaries in AutoCAD. Each extension dictionary entry consumes a minimum of 250 bytes of overhead beyond the object state during program execution, whereas each REGAPP in an objects's XDATA consumes about 40 bytes of overhead.

Some objects are private by nature; they are meant to be manipulated only by the application that creates and manages them. Using XDATA and extension dictionaries on private objects is not restricted.

父主题:

  1. ObjectARX 编程实践

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1   苏公网安备32011402011833)

GMT+8, 2025-3-5 15:51

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部