.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MenuUnload using Menu Groups

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
308 Views, 0 Replies

MenuUnload using Menu Groups

Hi all

Please help me. i m unable to do menugroup unload. anyone have idea how to do menu unload in dotnet.
can anyone check my code please.here is my code

Imports Autodesk.AutoCAD.Interop
Module Module1
Sub Main()
Dim acadApp As New AcadApplication
Dim mycuifile As String = "mycuifile"
Dim mycuipath As String = "C:\mycuifile.cui"
Dim mymenugroup As AcadMenuGroup
For Each mymenugroup In acadApp.MenuGroups
If mymenugroup.Name.ToUpper.ToString() = mycuifile.ToUpper.ToString() Then
mymenugroup.Unload()
End If
Next
End Sub
End Module

Thanks in advance
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost