TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: fools on August 05, 2007, 09:05:11 PM

Title: Can I use VBA method to get vlax-ldata-put value?
Post by: fools on August 05, 2007, 09:05:11 PM
Code: [Select]
(vlax-ldata-put "mydict" "mykey" "test")
Use below codes,I can find the "dict" and "key" ,but where is the value?
Code: [Select]
(vla-item (vla-item (vla-get-Dictionaries (vla-get-Activedocument(vlax-get-acad-object))) "mydict") "mykey")
Title: Re: Can I use VBA method to get vlax-ldata-put value?
Post by: Jeff_M on August 05, 2007, 11:36:07 PM
AFAIK, ldata is only accessible with lisp, which is one reason many people have preached to not use it.
Title: Re: Can I use VBA method to get vlax-ldata-put value?
Post by: MP on August 06, 2007, 12:02:30 AM
The insidious thing about ldata is that it's platform (LISP) and version centric, at
least early incarnations (cough, r14) which caused much grief when folks went to
use the data in newer versions of AutoCAD because it was inaccessible. Pure evil.

Best strategy is to use the standard data containers: xdata, xrecords, dictionaries
and xdictionaries ...

:)
Title: Re: Can I use VBA method to get vlax-ldata-put value?
Post by: jbuzbee on August 08, 2007, 11:33:55 PM
+1