Removes an item on a pop-up (shortcut) menu.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function RemoveMenuPopupItem2( _
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.Boolean |
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.Boolean
value = instance.RemoveMenuPopupItem2(DocumentType, Cookie, SelectType, PopupItemName, MenuCallback, MenuEnableMethod, HintString, CustomNames) |
Parameters
- DocumentType
- Document type as defined in swDocumentTypes_e
- Cookie
Cookie specified in ISwAddin::ConnectToSW
- SelectType
Selection type as defined in swSelectType_e
- PopupItemName
Description displayed on the shortcut menu
- MenuCallback
Function to call when the user clicks your menu item (see description in ISldWorks::AddMenuItem3)
- MenuEnableMethod
Optional function that controls the state of the menu item
If specified, SOLIDWORKS:
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 with if no update function is specified |
2 |
Selects and disables the menu item |
3 |
Selects and enables 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
True if the item was removed, false if not
Remarks
See Also
Availability
SOLIDWORKS 2003 FCS, Revision Number 11.0