Function Entry: VLAX-LDATA-GET
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: VLAX-LDATA-GET
Name
vlax-ldata-get
Class
Visual LISP persistent-data accessor
Syntax
(vlax-ldata-get dictionary key [default [private]])
Arguments and Values
dictionary— dictionary or object designator supporting ldata.key— string naming the ldata key.default— default value returned if the key is absent.private— privacy selector in Autodesk's ldata protocol.
Autodesk documents:
dictionaryas either a VLA-object or a string naming a global dictionarydefaultas one of integer, real, string, list, ename, VLA-object, variant, safearray, T, or nilprivateas T or nil
Description
Retrieves persistent AutoLISP data associated with a dictionary or object.
Return Values
Returns the stored value if present; otherwise returns default if supplied, or nil.
Exceptional Situations
Signals an AutoLISP-visible error if the target does not support ldata access.
Notes
- If
privateis non-nil and the call originates from a separate-namespace VLX, Autodesk documents that private ldata is read instead of public ldata. - If
privateis supplied, Autodesk requires thatdefaultalso be supplied, thoughdefaultmay itself be nil. - Autodesk explicitly notes that the same
dictandkeycan hold both private and non-private data.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [vlax-ldata-get (AutoLISP/ActiveX)](https://help.autodesk.com/cloudhelp/2023/JPN/AutoCAD-AutoLISP-Reference/files/GUID-C279216F-9568-4176-A9E7-BCB45E3F59C7.htm)
Compatibility
Available on Windows only; not available on macOS or Web.