XRecord object |
XRecord objects are used to store and manage arbitrary data.
VBA class name: |
AcadXRecord |
---|---|
Create using: |
Dictionary.AddXRecord |
Access via: |
Dictionary.Item |
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 obects are saved with the drawing and are directly accessible by other ObjectARX and LISP programs. So, if data security is an issue for your application, you should be careful when storing information in XRecords.
NOTE XRecord objects are designed to work in such a way as to not offend Releases 13c0 through 13c3. However, if read into a pre-Release 13c4 level of AutoCAD, XRecord objects disappear.
To create an XRecord, use the AddXRecord method. To edit or query an XRecord, use the following methods and properties:
Methods |
Properties |
Events |
Comments? |