Running a VB application

Running a VB application

Anonymous
Not applicable
329 Views
4 Replies
Message 1 of 5

Running a VB application

Anonymous
Not applicable
Hi,

This is a very trivial question, but I have created a dialog box with a bit
of code along with it using the VBA editor supplied with AutoCAD. I have
saved my project as bom.dvb. Here is my question, what lines of code do I
need to add to the project so that typing bom on the command line runs my
new app? The integrating the VB into AutoCAD is proving itself to be very
frustrating...

Thank you,
0 Likes
330 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Hi,

This question is answered in this NG about once a month on average. Just
look back through the group for a full discussion.

The method is with lisp along these lines:

(Defun C:WhatIType ()
(vl-vbarun "C:\\Dir1\\Dir2\\MyProgramFileName.dvb!MyMacroName")
)

Add the above to your acad.lsp file - If necssary create an acad.lsp file to
hold this text.
--

Laurie Comerford
CADApps
www.cadapps.com.au
"bcbii" wrote in message
news:4914245@discussion.autodesk.com...
Hi,

This is a very trivial question, but I have created a dialog box with a bit
of code along with it using the VBA editor supplied with AutoCAD. I have
saved my project as bom.dvb. Here is my question, what lines of code do I
need to add to the project so that typing bom on the command line runs my
new app? The integrating the VB into AutoCAD is proving itself to be very
frustrating...

Thank you,
0 Likes
Message 3 of 5

Anonymous
Not applicable
See the attached file.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"bcbii" wrote in message news:4914245@discussion.autodesk.com...
Hi,

This is a very trivial question, but I have created a dialog box with a bit
of code along with it using the VBA editor supplied with AutoCAD. I have
saved my project as bom.dvb. Here is my question, what lines of code do I
need to add to the project so that typing bom on the command line runs my
new app? The integrating the VB into AutoCAD is proving itself to be very
frustrating...

Thank you,
0 Likes
Message 4 of 5

Anonymous
Not applicable
Is it necesseary to "unload" the .dvb after running?
0 Likes
Message 5 of 5

GTVic
Advisor
Advisor
> Is it necesseary to "unload" the .dvb after running?

It is not necessary and it is not easy to do.

Here is some good info:
http://discussion.autodesk.com/thread.jspa?messageID=4818349

Also, try a search of "unload" in this newsgroup:
http://discussion.autodesk.com/search.jspa?numResults=25&inputEntered=true&source=thread-threaded%7C33&q=unload&objID=f33&search.x=0&search.y=0&search=Search
0 Likes