Message 1 of 2
Executing a macro on Profile Load
Not applicable
05-03-2006
10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a VBA macro (quite a big one) that is associated with an AutoCAD profile. The profile has a "Support File Search Path" where my DVB (acad.DVB) resides, and that DVB has the AcadStartup sub. (I also have the acad.rx file setup so that it loads the VBA interface on startup).
So in other words, when I load AutoCAD with the "/p MyProfile" switch on, the DVB is loaded automaticly, and the AcadStartup is executed.
My problem is this: When I switch profiles (default to MyProfile) inside AutoCAD, the DVB file is loaded, but the AcadStartup is not executed. I would guess that makes sense, since the name of the macro implies AutoCAD starting up, but I would need that macro to execute itself when loading MyProfile, so that the menu is created (witch is what this macro essencialy does).
Is there a different name I could use for a macro executing when a profile is loaded?
Tanks.
So in other words, when I load AutoCAD with the "/p MyProfile" switch on, the DVB is loaded automaticly, and the AcadStartup is executed.
My problem is this: When I switch profiles (default to MyProfile) inside AutoCAD, the DVB file is loaded, but the AcadStartup is not executed. I would guess that makes sense, since the name of the macro implies AutoCAD starting up, but I would need that macro to execute itself when loading MyProfile, so that the menu is created (witch is what this macro essencialy does).
Is there a different name I could use for a macro executing when a profile is loaded?
Tanks.