Attn: Matt W

Attn: Matt W

Anonymous
Not applicable
297 Views
5 Replies
Message 1 of 6

Attn: Matt W

Anonymous
Not applicable
You can use the attached VLAX class module to evaluate LISP expressions from VBA. This will allow you to gain access to vlax-product-key as well as acad-push-dbmod and acad-pop-dbmod. -- "It's beauty that captures your attention; personality which captures your heart."
0 Likes
298 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Ahhh... VLAX I've seen this kickin' around for a while but I've never tried it. How *exactly* do I implement this and use it to obtain the product key with this?? Will I still need to run a separate LSP file?? Thanks in advance! -- Matt W The difference between genius and stupidity is that genius has its limits.
0 Likes
Message 3 of 6

Anonymous
Not applicable
Matt W wrote: > Ahhh... VLAX > I've seen this kickin' around for a while but I've never tried it. > How *exactly* do I implement this and use it to obtain the product > key with this?? Add the VLAX.CLS file to your project then do something like this: Dim obj As VLAX, key As String Set obj = New VLAX key = obj.EvalLispExpression("(vlax-product-key)") > Will I still need to run a separate LSP file?? I suppose that's possible. I've only ever used it to execute LISP directly from VBA. -- "It's beauty that captures your attention; personality which captures your heart."
0 Likes
Message 4 of 6

Anonymous
Not applicable
Thanks for speed reply, Frank, but.. I get an error message "Problem in loading application". I've got the class mod in my program and I simply copied and pasted what you typed. I'm running ABS 2004 if that makes a difference. Thanks! -- Matt W The difference between genius and stupidity is that genius has its limits.
0 Likes
Message 5 of 6

Anonymous
Not applicable
Matt W wrote: > Thanks for speed reply, Frank, but.. I get an error message "Problem > in loading application". I keep forgetting about that. Modify the Class_Initialize routine in the class module and change "VL.Application.1" to "VL.Application.16" if you're using 2004 or later. If that's not your problem, be sure to execute (vl-load-com) at the command line before creating your first instance of VLAX. -- "It's beauty that captures your attention; personality which captures your heart."
0 Likes
Message 6 of 6

Anonymous
Not applicable
I was actually just looking at that thinking, "Hmmmm... maybe I should change this to reflect the current version number of AutoCAD". Thanks again! -- Matt W The difference between genius and stupidity is that genius has its limits.
0 Likes