Getting value

Getting value

Anonymous
Not applicable
374 Views
5 Replies
Message 1 of 6

Getting value

Anonymous
Not applicable
Hi all,

I am storing value by lisp as (SETQ A "x"). How i can recall the value of "x" in VBA.

Thanks in advance.
0 Likes
375 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Use one of the system variables such as Users1, (setvar "users1" x) then in
VBA you use the getvar method to retrieve it.

Murph

wrote in message news:5080283@discussion.autodesk.com...
Hi all,

I am storing value by lisp as (SETQ A "x"). How i can recall the value of
"x" in VBA.

Thanks in advance.
0 Likes
Message 3 of 6

Anonymous
Not applicable
You can also access it via the VL.Application and/or the VLAX.cls posted in
this group.

(I have not used either, only dabbled with them a few times, so I can't
provide an example.)

"Murph" wrote in message
news:5080378@discussion.autodesk.com...
Use one of the system variables such as Users1, (setvar "users1" x) then in
VBA you use the getvar method to retrieve it.

Murph

wrote in message news:5080283@discussion.autodesk.com...
Hi all,

I am storing value by lisp as (SETQ A "x"). How i can recall the value of
"x" in VBA.

Thanks in advance.
0 Likes
Message 4 of 6

Anonymous
Not applicable
Thanks for your reply,

I am experimented to get a value in VBA by using SETVAR and GETVAR command like (setvar "users1" x). its not work.

See my Codes, am set a value in VBA as

ThisDrawing.SendCommand "(setq userid 1) " & vbCr.

Just i want to recall the userid value in VBA.

any other idea.
0 Likes
Message 5 of 6

Anonymous
Not applicable
Dim i As Integer
i = ThisDrawing.GetVariable("Useri1")
ThisDrawing.SetVariable "Useri1", 2
0 Likes
Message 6 of 6

Anonymous
Not applicable
Now its OK
Thanks for all
0 Likes