Gets the SolidWorks resource ID for an add-in's
CommandManager-style toolbar button.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function GetCommandID( _
ByVal ClsID As System.String, _
ByVal UserCmdID As System.Integer _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ISwHtmlInterface
Dim ClsID As System.String
Dim UserCmdID As System.Integer
Dim value As System.Integer
value = instance.GetCommandID(ClsID, UserCmdID) |
C# | |
---|
System.int GetCommandID(
System.string ClsID,
System.int UserCmdID
) |
C++/CLI | |
---|
System.int GetCommandID(
& System.String^ ClsID,
& System.int UserCmdID
) |
Parameters
- ClsID
- Add-in's class ID
- UserCmdID
Unique ID that the add-in application identified as a CommandManager-style toolbar button
Return Value
Currently bound ID for the CommandManager-style toolbar button
Example
See Also
Availability
SolidWorks 2006 SP3, Revision Number 14.3