Creates a new CommandGroup in the CommandManager.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function CreateCommandGroup2( _
ByVal UserID As System.Integer, _
ByVal Title As System.String, _
ByVal ToolTip As System.String, _
ByVal Hint As System.String, _
ByVal Position As System.Integer, _
ByVal IgnorePreviousVersion As System.Boolean, _
ByRef Errors As System.Integer _
) As CommandGroup |
Visual Basic (Usage) | |
---|
Dim instance As ICommandManager
Dim UserID As System.Integer
Dim Title As System.String
Dim ToolTip As System.String
Dim Hint As System.String
Dim Position As System.Integer
Dim IgnorePreviousVersion As System.Boolean
Dim Errors As System.Integer
Dim value As CommandGroup
value = instance.CreateCommandGroup2(UserID, Title, ToolTip, Hint, Position, IgnorePreviousVersion, Errors) |
Parameters
- UserID
Unique user-defined ID for the new CommandGroup
- Title
Name of the CommandGroup to create (see Remarks)
- ToolTip
Tool tip for the CommandGroup
- Hint
Text displayed in SOLIDWORKS status bar when a user's mouse pointer is over the CommandGroup
- Position
Position of the CommandGroup in the CommandManager for all document templates (see Remarks)
NOTE: Specify 0 to add the CommandGroup to the beginning of the CommandMananger, or specify -1 to add it to the end of the CommandManager.
- IgnorePreviousVersion
- True to remove all previously saved customization and toolbar information before creating a new CommandGroup, false to not (see Remarks)
- Errors
- Error code as defined in swCreateCommandGroupErrors
Return Value
ICommandGroup
Example
Remarks
See Also
Availability
SOLIDWORKS 2011 FCS, Revision Number 19.0