Problem running VBA macro from acad2009.lsp and acad2009doc.lsp

Problem running VBA macro from acad2009.lsp and acad2009doc.lsp

btmsoftware
Advocate Advocate
452 Views
4 Replies
Message 1 of 5

Problem running VBA macro from acad2009.lsp and acad2009doc.lsp

btmsoftware
Advocate
Advocate
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
0 Likes
453 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
FYI,

Seems to work fine with some of the samples delivered with Acad and not with
some other. Don't know why though

--
____________________
Francois Dauberlieu
BTM Software Europe B.V.
http://www.btmsoftware.eu
"btmsoftware" wrote in message news:5981372@discussion.autodesk.com...
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
0 Likes
Message 3 of 5

Anonymous
Not applicable
>If in Windows explorer, I double-click on a DWG file, AutoCAD launches but
>when it basically gets stuck at:

Check the properties of the your AutoCAD Desktop Icon. IIRC it is set to
"Launcher". Change it to start acad.exe - as in
..\Program Files\AutoCAD Map 3D 2008\acad.exe
0 Likes
Message 4 of 5

Anonymous
Not applicable
Actually, the problem is not with the icon it is when double-clicking on a
DWG file in Windows Explorer.

I found out that it doesn't happen on all files so I guess I'll have to find
out why this happens on some and not others. We'll see

--
____________________
Francois Dauberlieu
BTM Software Europe B.V.
http://www.btmsoftware.eu
"fieldguy" wrote in message
news:5986502@discussion.autodesk.com...
>If in Windows explorer, I double-click on a DWG file, AutoCAD launches but
>when it basically gets stuck at:

Check the properties of the your AutoCAD Desktop Icon. IIRC it is set to
"Launcher". Change it to start acad.exe - as in
..\Program Files\AutoCAD Map 3D 2008\acad.exe
0 Likes
Message 5 of 5

Anonymous
Not applicable
Right - my mistake. Launcher is assigned in file associations - not the
icon.
0 Likes