Description
Adds (loads) a partial menu to the current main menu.
Visual Basic
Public static Function LoadPartialMenu( filename As string ) As bool
C#
public static bool LoadPartialMenu( string filename );
Parameters
Parameters | Description |
---|---|
string filename | The menu filename. Can be provided with or without a path, though if provided without a path, it is expected that the file is located on the current support files search path. The method call is rejected if the string is null, empty, or "." . |
Returns
True if successful, false if not. Possible errors: The file cannot be found, or the menu group name in the partial menu is already loaded.
Remarks
It does not support adding a partial menu to the Enterprise menu. If the menu file is not found at the path provided, or if the filename has no path, it performs a search for the menu file on the support files search path. It automatically saves the change to the main menu (listing the new partial menu).
Links
Application Class, Autodesk.AutoCAD.ApplicationServices Namespace