Obsolete. Superseded by ISldWorks::AddMenuPopupItem4.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddMenuPopupItem3( _
ByVal DocumentType As System.Integer, _
ByVal Cookie As System.Integer, _
ByVal SelectType As System.Integer, _
ByVal As System.String, _
ByVal As System.String, _
ByVal As System.String, _
ByVal HintString As System.String, _
ByVal CustomNames As System.String _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim DocumentType As System.Integer
Dim Cookie As System.Integer
Dim SelectType As System.Integer
Dim PopupItemName As System.String
Dim MenuCallback As System.String
Dim MenuEnableMethod As System.String
Dim HintString As System.String
Dim CustomNames As System.String
Dim value As System.Integer
value = instance.AddMenuPopupItem3(DocumentType, Cookie, SelectType, PopupItemName, MenuCallback, MenuEnableMethod, HintString, CustomNames) |
Parameters
- DocumentType
Document type as defined by swDocumentTypes_e
- Cookie
Cookie specified as defined in ISwAddin::ConnectToSW
- SelectType
Selection type as defined in swSelectType_e
- PopupItemName
Description displayed on the shortcut menu
- MenuCallback
Function to be called when the user clicks your menu item (see description in ISldWorks::AddMenuItem4)
- MenuEnableMethod
Optional function that controls the state of the menu item
If specified:
If your method returns... |
Then SOLIDWORKS... |
0 |
Deselects and disables the menu item. |
1 |
Deselects and enables the menu item (this is the default menu state if no update function is specified) |
2 |
Selects and disables the menu item |
3 |
Selects and enables the menu item |
4 |
Hides the menu item |
- HintString
- Text to show in the SOLIDWORKS status bar when the user moves their mouse over this menu item; if you specify a HintString, it must be preceded by a comma
- CustomNames
Semi-colon separated list of the names of the custom feature types; this argument is applicable only if SelectType is a custom feature type (like swSelATTRIBUTES); in the case of swSelATTRIBUTES, set this field to the name of the attribute definition
Return Value
SOLIDWORKS runtime command ID or -1 if the method fails
Remarks
See Also
Availability
SOLIDWORKS 2009 FCS, Revision Number 17.0