Author Topic: vlax-ldata-put AND vlax-ldata-get not available  (Read 1744 times)

0 Members and 1 Guest are viewing this topic.

TopoWAR

  • Newt
  • Posts: 135
vlax-ldata-put AND vlax-ldata-get not available
« on: July 24, 2014, 02:23:46 PM »
Hello everyone! I have autocad 2015 and these 2 functions are not available: vlax-ldata-put AND  vlax-ldata-get, and Use (vl-load-com), all vlax-.... are, but these two are not. the problem any suggestions? and attempt to repair the installation of autocad and not solved. thank teachers.
« Last Edit: July 24, 2014, 03:53:19 PM by TopoWAR »
Thanks for help

Tharwat

  • Swamp Rat
  • Posts: 710
  • Hypersensitive
Re: vlax-get-LDATA and vlax-put-LDATA not available
« Reply #1 on: July 24, 2014, 03:17:57 PM »
I think you did write the function wrongly ;)

It is vlax-ldata-get and not vlax-get-ldata and as well as the second one of course .

TopoWAR

  • Newt
  • Posts: 135
Re: vlax-get-LDATA and vlax-put-LDATA not available
« Reply #2 on: July 24, 2014, 03:55:59 PM »
Tharwat , sorry, it's just an error in writing the post, (and I corrected the post) but in lisp if I put well and are these functions, even invoking (vl-load-com) and not know it can be!
Thanks for help

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: vlax-ldata-put AND vlax-ldata-get not available
« Reply #3 on: July 24, 2014, 04:22:34 PM »
Hello everyone! I have autocad 2015 and these 2 functions are not available: vlax-ldata-put AND  vlax-ldata-get, and Use (vl-load-com), all vlax-.... are, but these two are not. the problem any suggestions? and attempt to repair the installation of autocad and not solved. thank teachers.

Works for me.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Tharwat

  • Swamp Rat
  • Posts: 710
  • Hypersensitive
Re: vlax-ldata-put AND vlax-ldata-get not available
« Reply #4 on: July 24, 2014, 04:29:07 PM »
It works here on AutoCAD 2015 .

Code - Auto/Visual Lisp: [Select]
  1. (defun c:put-ldata (/ s)
  2.   (if (setq s (car (entsel "\n Select object < LINE >: ")))
  3.       (vlax-ename->vla-object s)
  4.       "My line"
  5.       '(1 . "Example")
  6.     )
  7.   )
  8.   (princ)
  9. )
  10. ;;                                                      ;;
  11. (defun c:get-ldata (/ s ld)
  12.   (if (and (setq s (car (entsel "\n Select object < LINE >: ")))
  13.            (setq ld (vlax-ldata-get (vlax-ename->vla-object s) "My line"))
  14.       )
  15.     (alert (strcat "ldata found < " (cdr ld) " > "))
  16.   )
  17.   (princ)
  18. )