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:

  • dictionary as either a VLA-object or a string naming a global dictionary
  • default as one of integer, real, string, list, ename, VLA-object, variant, safearray, T, or nil
  • private as 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 private is non-nil and the call originates from a separate-namespace VLX, Autodesk documents that private ldata is read instead of public ldata.
  • If private is supplied, Autodesk requires that default also be supplied, though default may itself be nil.
  • Autodesk explicitly notes that the same dict and key can 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.

Compatibility

Available on Windows only; not available on macOS or Web.