Description
Removes (unloads) a partial menu from the current main menu.
Visual Basic
Public static Function UnloadPartialMenu( filename As string ) As bool
C#
public static bool UnloadPartialMenu( string filename );
Parameters
Parameters | Description |
---|---|
string filename | The menu filename. Can be provided with or without a path, though there is a better chance of success if provided without a path. |
Returns
True if successful, false if not. Possible errors: The filename is not found or not loaded as a partial menu.
Remarks
This method not support removing a partial menu from the Enterprise menu. It automatically saves the change to the main menu (removes the partial menu from the list, stored in the main menu).
Links
Application Class, Autodesk.AutoCAD.ApplicationServices Namespace