Executing a macro on Profile Load

Executing a macro on Profile Load

Anonymous
Not applicable
317 Views
1 Reply
Message 1 of 2

Executing a macro on Profile Load

Anonymous
Not applicable
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.
0 Likes
318 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi,

Why not not include the menu in the profile? Or if you are in a later
version of AutoCAD in a workspace and change the workspace rather than a
profile.

--

Laurie Comerford
CADApps
www.cadapps.com.au

wrote in message news:5162709@discussion.autodesk.com...
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.
0 Likes