dieva
Guest
to get the name (id) the object in vla-object format is used the function vla-handletoobject instead of vlax-ename->vla-object that turns out to be unavailable.Then this time I entered the right file, sorry was my mistake. Your correction works perfectly. But now you should explain to me what happened and if the correction I can apply it to other lisp that could cause problems. Meanwhile something happened even if I think visual lisp is loaded properly.
you can use the same technique in other programs. instead of you I would create a vlax-ename->vla-object function with a defunct redefining the original and charging it in an acad.lsp file.
Code:
(refun vlax-ename->vla object (n)
(cdr (assoc 5 (entget n)))
)