Author Topic: Can I use VBA method to get vlax-ldata-put value?  (Read 5049 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: 4094
  • 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: 17750
  • Have thousands of dwgs to process? Contact me.
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 ...

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

jbuzbee

  • Swamp Rat
  • Posts: 851
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