Adds a menu item to a SOLIDWORKS menu 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 add the menu item as defined by swDocumentTypes_e
- Menu
- Name of menu item to add, including any parent menu names, e.g., subMenuString@menuString
- Position
Specifies the position where to add the new menu item; 0 = first position and 1 = end of the parent menu (see Remarks)
Return Value
1 if menu item is added successfully added or 0 if adding the menu item failed
Example
Remarks
See Also
Availability
SOLIDWORKS 99, datecode 1999207