AutoCAD 2008 64bit, Windows 7 64 bit & VBA AcadDocument Events

AutoCAD 2008 64bit, Windows 7 64 bit & VBA AcadDocument Events

Anonymous
Not applicable
3,187 Views
1 Reply
Message 1 of 2

AutoCAD 2008 64bit, Windows 7 64 bit & VBA AcadDocument Events

Anonymous
Not applicable

When we load a DVB file programmatically on AutoCAD startup, using 'LoadDVB' from VBA, 'vl-vbaload' from Visual Lisp, or from the 'appload' Startup Suite, the AcadDocuments Events will not fire until we unload and reload the DVB using VBAMAN.  We have configuration control code in our AcadDocuments Events that worked perfectly on XP 32 bit with AutoCAD 32 bit.  We have over 1,000 users that would have to manually load the DVB every time they start AutoCAD.

 

Does anyone have a solution to have the Events fire when the DVB is loaded programmatically on startup?

 

Thanks.

0 Likes
3,188 Views
1 Reply
Reply (1)
Message 2 of 2

arcticad
Advisor
Advisor

Richard,

 

There may not be a solution on 64 bit. You should migrate the code to .net.

 

VBA runs as an out of process application and in 32 bits. and as a result it doesn't always work the same or not at all.

 

http://forums.autodesk.com/t5/Visual-Basic-Customization/No-more-VBA-in-2010-What-do-us-utility-prog...

 

---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes