Message 1 of 5
Problem running VBA macro from acad2009.lsp and acad2009doc.lsp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
The following works fine from Acad 2004 up to 2008 but not in 2009
I have a DVB file with a few modules/macros.
In my acad200*.lsp,
I set the following:
(defun-q S::STARTUP()
(command "_vbarun" "C:\\Temp\\Project.dvb!Module1.Main")
)
If I start AutoCAD 2009 using the Desktop/Start Menu Icon. No problem, it loads and runs
If in Windows explorer, I double-click on a DWG file, AutoCAD launches but when it basically gets stuck at:
Regenerating model.
AutoCAD menu utilities loaded._vbarun
I then need to hit the ESC key a couple of time to getthe hand but then, my macro doesn't run.
I tried to put my startup in acad2009doc.lsp insted of acad2009.lsp but it does the same.
Anybody has seen/resolved that ?
TIA
The following works fine from Acad 2004 up to 2008 but not in 2009
I have a DVB file with a few modules/macros.
In my acad200*.lsp,
I set the following:
(defun-q S::STARTUP()
(command "_vbarun" "C:\\Temp\\Project.dvb!Module1.Main")
)
If I start AutoCAD 2009 using the Desktop/Start Menu Icon. No problem, it loads and runs
If in Windows explorer, I double-click on a DWG file, AutoCAD launches but when it basically gets stuck at:
Regenerating model.
AutoCAD menu utilities loaded._vbarun
I then need to hit the ESC key a couple of time to getthe hand but then, my macro doesn't run.
I tried to put my startup in acad2009doc.lsp insted of acad2009.lsp but it does the same.
Anybody has seen/resolved that ?
TIA