Running a visual basic project.

Running a visual basic project.

Anonymous
Not applicable
222 Views
2 Replies
Message 1 of 3

Running a visual basic project.

Anonymous
Not applicable
Hello all!

I have managed to create my first visual basic project for AutoCAD, now it
is time for a dumb question!

What is the "preferred" method of loading and running a visual basic macro
(so as to give that built in feel)?

For example, with lisp, I always created the code, put it in the search
path, and added an autoload statement to my acaddoc.lsp file.

I can get the project to load and run by creating a lisp file which loads
and runs the visual basic file. I then reference this lisp file in my
acaddoc.lsp file. But I was interested in getting the oppions of the
experts!

Thanks for any help!
--
Lance A. Endres
lendres@ucsd.edu
0 Likes
223 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Create a custom toolbar button and insert a demand load statement for your
routine in the button's 'Macro' field:

-vbarun;VBAFile.dvb!VBAMacro;

-- Walter -- http://www.ActiveDwg.com
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks for the tip! Much appreciated.

--
Lance A. Endres
lendres@ucsd.edu
"Walter" wrote in message
news:29097CF814BED9F736F9E3D0332CC89C@in.WebX.SaUCah8kaAW...
> Create a custom toolbar button and insert a demand load statement for your
> routine in the button's 'Macro' field:
>
> -vbarun;VBAFile.dvb!VBAMacro;
>
> -- Walter -- http://www.ActiveDwg.com
>
0 Likes