Message 1 of 2
AutoCad crashes on VBA triggered by Acad.lsp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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