XRecord objects are used to store and manage arbitrary data.
Supported Platforms: Windows only
Class Information
- Class Name
-
AcadXRecord
- Object Inheritance
-
Object AcadObject AcadXRecord
- Create Using
-
VBA
Dictionary.AddXRecord
- Access Via
-
VBA
Dictionary.Item
Members
These members are part of this object:
Remarks
This object is similar in concept to XData but is not limited by size or order.
Unlike XData, XRecords work with the standard AutoCAD group codes that 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, which allows XRecords to own other objects including other XRecords.
The following group codes are common to all XRecord objects:
- 100: Subclass marker (AcDbXrecord)
- 1-369 (except 5 and 105 and 210-239): These values can be used by an application in any way
XRecord objects are saved with the drawing and are directly accessible by other ObjectARX, Managed .NET, and AutoLISP programs. So, if data security is an issue for your application, you should be careful when storing information in XRecords.
To create an XRecord, use the AddXRecord method.