carry
Guest
Hi.
I installed autocad 2012, the function below, which passes data from vba to lisp, with 2008 was perfectly working, now with 2012 it no longer works.
the problem lies in sym, is declared as an object but evidentmete not enough, someone has any idea?
Thank you.
in local variables I read:
symbolname ="#listanomi" and is ok
value ="()" and is ok sym = nothing
vl è ok mi da "visual lisp"
sub putlisp(symbolname as string, value as string)
dim sym as object
if vl is nothing then '
set vl = thisdrawing.application.getinterfaceobject("vl.application.16")
'set vl = createobject("vl.application.16")end ifset sym = vl.activedocument.functions.item("read").funcall(symbolname)vl.activedocument.functions.item("set").funcall sym, value
end sub
I installed autocad 2012, the function below, which passes data from vba to lisp, with 2008 was perfectly working, now with 2012 it no longer works.
the problem lies in sym, is declared as an object but evidentmete not enough, someone has any idea?
Thank you.
in local variables I read:
symbolname ="#listanomi" and is ok
value ="()" and is ok sym = nothing
vl è ok mi da "visual lisp"
sub putlisp(symbolname as string, value as string)
dim sym as object
if vl is nothing then '
set vl = thisdrawing.application.getinterfaceobject("vl.application.16")
'set vl = createobject("vl.application.16")end ifset sym = vl.activedocument.functions.item("read").funcall(symbolname)vl.activedocument.functions.item("set").funcall sym, value
end sub