How to make a custom menu persistent in AutoCAD Map 3D 2008?

How to make a custom menu persistent in AutoCAD Map 3D 2008?

Anonymous
Not applicable
433 Views
4 Replies
Message 1 of 5

How to make a custom menu persistent in AutoCAD Map 3D 2008?

Anonymous
Not applicable
I have posted this topic a few months ago. But I haven't received any suggestions so far.

I have created a custom pull down menu using VBA in AutoCAD Map 3D 2008. As soon as I close the AutoCAD, the custom menu disappears. Is there any way I can make the menu persistent using VBA or VB.NET/C#.

Any suggestions would be greatly appreciated.
0 Likes
434 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
The simple option would be for the VBA routine to be loaded on startup. Another option would be to modify the CUI file using the .NET CUI API.
0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks for the reply.

a) Could you please explain the steps to load the VBA routine at startup.

b) Where can I find the help on .NET CUI API. Would appreciate if you provide some code samples.

Thanks for the help.
0 Likes
Message 4 of 5

Anonymous
Not applicable
>>a) Could you please explain the steps to load the VBA routine at startup.

From the help files:

There are two different ways to load a VBA project automatically:

When VBA is loaded it will look in the AutoCAD directory for a project named acad.dvb. This file is automatically loaded as the default project
Any project other than the default, acad.dvb, can be used by explicitly loading that project at startup using the VBALOAD command. The following code sample uses the AutoLISP startup file to load VBA and a VBA project named myproj.dvb when AutoCAD is started. Start notepad.exe and create (or append to) acad.lsp the following lines:
(defun S::STARTUP()

(command "_VBALOAD" "myproj.dvb")

)


>>b) Where can I find the help on .NET CUI API. Would appreciate if you provide some code samples.

ObjectARX documentation.
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks once again for the information.
0 Likes