Copies a button to a toolbar using a command ID.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function DragToolbarButtonFromCommandID( _
ByVal CommandID As Integer, _
ByVal TargetToolbar As Integer, _
ByVal TargetIndex As Integer _
) As Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim CommandID As Integer
Dim TargetToolbar As Integer
Dim TargetIndex As Integer
Dim value As Integer
value = instance.DragToolbarButtonFromCommandID(CommandID, TargetToolbar, TargetIndex)
|
Parameters
- CommandID
- Command ID as defined by swCommands_e
- TargetToolbar
- Toolbar as defined by swToolbar_e or if a CommandGroup toolbar, use ICommandGroup::ToolbarId
- TargetIndex
0-based index of the toolbar button on the native SolidWorks toolbar or CommandGroup toolbar
Return Value
Index of the toolbar or -1 if the button is not added
See Also
Availability
SolidWorks 2008 SP4, Revision Number 16.4