Author Topic: Can I use VBA method to get vlax-ldata-put value?  (Read 2249 times)

0 Members and 1 Guest are viewing this topic.

fools

  • Newt
  • Posts: 72
  • China
Can I use VBA method to get vlax-ldata-put value?
« 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")
Good good study , day day up . Sorry about my Chinglish .

Jeff_M

  • King Gator
  • Posts: 3942
  • C3D user & customizer
Re: Can I use VBA method to get vlax-ldata-put value?
« Reply #1 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.

MP

  • Seagull
  • Posts: 17400
Re: Can I use VBA method to get vlax-ldata-put value?
« Reply #2 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 ...

:)
\|// Set goal. Experiment tirelessly until
|Oo| practice has become expertise.  Loop.
|- | LinkedIn | Dropbox

jbuzbee

  • Swamp Rat
  • Posts: 833
Re: Can I use VBA method to get vlax-ldata-put value?
« Reply #3 on: August 08, 2007, 11:33:55 PM »
+1
James Buzbee
Windows 8