Adds a menu or sub-menu item to the SolidWorks interface for DLL applications.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddMenu( _
ByVal DocType As System.Integer, _
ByVal As System.String, _
ByVal Position As System.Integer _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim DocType As System.Integer
Dim Menu As System.String
Dim Position As System.Integer
Dim value As System.Integer
value = instance.AddMenu(DocType, Menu, Position) |
C# | |
---|
System.int AddMenu(
System.int DocType,
System.string ,
System.int Position
) |
C++/CLI | |
---|
System.int AddMenu(
& System.int DocType,
& System.String^ ,
& System.int Position
) |
Parameters
- DocType
Document type to which the menu item is to be added as defined by swDocumentTypes_e
- Menu
- Menu name to be added, including any parent menu names, for example "subMenuString@menuString"
- Position
Specifies the position at which to add the new menu or submenu. 0 specifies the first position; if position is 1, the new menu or submenu is added to the bottom of the parent menu
Return Value
1 if menu item was successfully added, 0 if failure
Remarks
See Also
Availability
SolidWorks 99, datecode 1999207