vlax-ldata-get (AutoLISP/ActiveX)

Retrieves LISP data from a drawing dictionary or an object

Supported Platforms: Windows only

Signature

(vlax-ldata-get dict key [default-data [private]])
dict

Type: VLA-object or String

An object, an AutoCAD drawing entity object, or a string naming a global dictionary.

key

Type: String

Dictionary key.

default-data

Type: Integer, Real, String, List, ads_name, VLA-object, variant, safearray, T, or nil

LISP data to be returned if no matching key exists in the dictionary.

private

Type: T or nil

If a non-nil value is specified for private and vlax-ldata-get is called from a separate-namespace VLX, vlax-ldata-get retrieves private LISP data from dict.

If you specify private, you must also specify default-data; you can use nil for default-data.

Return Values

Type: Integer, Real, String, List, ads_name, VLA-object, variant, safearray, T, or nil

The value of the key item.

Remarks

Note that a separate-namespace VLX can store both private and non-private data using the same dict and key. The private data can be accessed only by the same VLX, but any application can retrieve the non-private data.

Examples

(vlax-ldata-put "mydict" "mykey" "Mumbo Dumbo")
"Mumbo Dumbo"

(vlax-ldata-get "mydict" "mykey")
"Mumbo Dumbo"