Adds a menu or sub-menu item to the SolidWorks interface for DLL applications.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddMenu( _
ByVal DocType As Integer, _
ByVal As String, _
ByVal Position As Integer _
) As Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim DocType As Integer
Dim Menu As String
Dim Position As Integer
Dim value As Integer
value = instance.AddMenu(DocType, Menu, 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