Data & Dictionaries
Read AutoCAD dictionaries, dictionary entries, and XRecords to browse and extract custom data attached to documents and objects.
AutoCAD Dictionary
AutoCAD › Data · Introduced v1.0.16
Reads the contents of an AutoCAD dictionary. It reports the dictionary's name and Id, lists all of its entries as key-value pairs, and tells you how many entries it holds. Use it to browse named-object dictionaries or extension dictionaries attached to objects.
Inputs
DictionaryAutoCAD DictionaryAn AutoCAD Dictionary
Outputs
NameTextThe name of the AutoCAD Dictionary.
The Id of the AutoCAD Dictionary.
EntriesAutoCAD Dictionary EntryThe entries in the Dictionary as key-value pairs.
CountIntegerThe number of entries in the Dictionary.
See also
AutoCAD Dictionary Entry, Get Dictionary Entry, AutoCAD XRecord
AutoCAD Dictionary Entry
AutoCAD › Data · Introduced v1.0.16
Splits a single AutoCAD dictionary entry into its key and value. The value is returned as whatever object it holds, such as an XRecord, a nested dictionary or another object. Use it to read individual items pulled from the AutoCAD Dictionary node.
Inputs
An AutoCAD Dictionary Entry
Outputs
KeyTextThe key of the dictionary entry.
ValueGenericThe value of the dictionary entry (XRecord, Dictionary, or other object).
See also
AutoCAD Dictionary, Get Dictionary Entry, AutoCAD XRecord
AutoCAD XRecord
AutoCAD › Data · Introduced v1.0.16
Reads the data stored inside an AutoCAD XRecord. It returns the XRecord's Id together with the list of DXF group codes and the matching list of stored values. Use it to extract custom data that has been attached to objects or dictionaries.
Inputs
XRecordAutoCAD XRecordAn AutoCAD XRecord
Outputs
The Id of the AutoCAD XRecord.
TypeCodesIntegerThe DXF group codes for each value.
ValuesGenericThe values stored in the XRecord.
See also
AutoCAD Dictionary, AutoCAD Dictionary Entry
Get Dictionary Entry
AutoCAD › Data · Introduced v1.0.16
Retrieves a single entry from an AutoCAD dictionary by its key. It returns the matching key-value pair, or nothing if the key is not present. Use it when you know the exact key you want instead of listing the whole dictionary.
Inputs
DictionaryAutoCAD DictionaryAn AutoCAD Dictionary
KeyTextThe key of the entry to retrieve
Outputs
The dictionary entry containing the key and value.