AutoCad crashes on VBA triggered by Acad.lsp

AutoCad crashes on VBA triggered by Acad.lsp

wbdehaan
Enthusiast Enthusiast
430 Views
1 Reply
Message 1 of 2

AutoCad crashes on VBA triggered by Acad.lsp

wbdehaan
Enthusiast
Enthusiast
Hi,

I use a button to start a vba-macro. this macro opens a drawing, and triggers acad.lsp. In this acad.lsp i have the following line:

(if (= vla-get-singledocumentmode T)(princ "Bypass in SingleDocumentMode")(command "_-vbarun" "MacroName"))

this triggers another macro from the same project.dvb. But the variables from the first run are empty, so it seems it is starting another session?

But the problem is that sometimes AutoCad crashes when using this routine. I need to run routines when opening a file, but i can bypass the routines when opening files using the routine. Who can help me?

kind regards,

Wouter de Haan
the Netherlands
0 Likes
431 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Same issue here...running Architecture 2009 or 2010 w/VBA extension.
Started after MS updates and SP3(version4) of ACA2009.
Whenever vba statement executed from LISP, AutoCAD crashes.
Another system with same hardware i.e. mobo,cpu,ram,video that was updated at same time does not have problem.
Other users who are not updated and have similar hardware also do not have problem.
Presume a .dll file got broken somehow.
Ideas appreciated.
In meantime will start building a new system...
0 Likes