Solid Edge Framework Type Library > ISEAddInEx2 Object : SetAddInInfoEx2 Method |
This is an array of BSTRs. Each string can contain sub-strings separated by "\n".
The substrings are defined as follows:
• Name of the command you are adding. This should not be internationalized and should be tagged in such a way to help ensure uniqueness.
• Text displayed on the menu entry for the command. This substring may contain backslash characters, which Solid Edge (Version 7 or later) will use to create additional pop-up submenus and/or to add a separator preceding the command entry (Version 8 or later). The strings appearing between the backslashes become the title of the pop-up menu and the last string becomes the entry on the final menu. If the first character of any substring (including the first) is itself a backslash, Solid Edge will add a separator preceding the menu entry.
• Status bar string. This is the string displayed on the status bar.
• Tooltip string. This is the string displayed as the tooltip.
• Macro string. If present, this string becomes the macro associated with the command. Commands that have a macro string will not be invoked by calling OnCommand. Instead, Solid Edge runs the macro.
• Parameter string. If present, this string is passed as an argument to the macro.
Example:
"MyAddinCommand1\nSEaddin Sample Command\nDisplays a message box\nSeaddin Command"
The non-internationalized tag for the command is "MyAddinCommand1". "Seaddin Sample Command" will appear as an entry on the addin's pop-up menu created by Solid Edge. "Displays a message box" will appear in the status field of the frame window. "Seaddin Command" is displayed as the tooltip for the command if it is added to a command bar by calling AddCommandBarButton.
Example:
"MyAddinCommand1\nSEaddin\ Sample Command\nDisplays a message box\nSeaddin Command"
This example is identical to the one above with one exception. That being that an additional pop-up submenu named "Seaddin" will exist with "Sample Command" being an entry on that pop-up
Example:
"MyAddinCommand1\nSEaddin\\ Another Sample Command\nDisplays a message box\nSeaddin Command"
This example is identical to the one above with one exception. Due to the additional backslash, a separator will be inserted preceding the menu entry "Another Sample Command".
Visual Basic |
---|
Public Function SetAddInInfoEx2( _ ByVal ResourceFilename As String, _ ByVal EnvironmentCatID As String, _ ByVal CategoryName As String, _ ByVal IDColorBitmapMedium As Long, _ ByVal IDColorBitmapLarge As Long, _ ByVal IDMonochromeBitmapMedium As Long, _ ByVal IDMonochromeBitmapLarge As Long, _ ByVal NumberOfCommands As Long, _ ByRef CommandNames() As String, _ ByRef CommandIDs() As Long, _ ByRef CommandButtonStyles() As Long _ ) As HResult |
This is an array of BSTRs. Each string can contain sub-strings separated by "\n".
The substrings are defined as follows:
• Name of the command you are adding. This should not be internationalized and should be tagged in such a way to help ensure uniqueness.
• Text displayed on the menu entry for the command. This substring may contain backslash characters, which Solid Edge (Version 7 or later) will use to create additional pop-up submenus and/or to add a separator preceding the command entry (Version 8 or later). The strings appearing between the backslashes become the title of the pop-up menu and the last string becomes the entry on the final menu. If the first character of any substring (including the first) is itself a backslash, Solid Edge will add a separator preceding the menu entry.
• Status bar string. This is the string displayed on the status bar.
• Tooltip string. This is the string displayed as the tooltip.
• Macro string. If present, this string becomes the macro associated with the command. Commands that have a macro string will not be invoked by calling OnCommand. Instead, Solid Edge runs the macro.
• Parameter string. If present, this string is passed as an argument to the macro.
Example:
"MyAddinCommand1\nSEaddin Sample Command\nDisplays a message box\nSeaddin Command"
The non-internationalized tag for the command is "MyAddinCommand1". "Seaddin Sample Command" will appear as an entry on the addin's pop-up menu created by Solid Edge. "Displays a message box" will appear in the status field of the frame window. "Seaddin Command" is displayed as the tooltip for the command if it is added to a command bar by calling AddCommandBarButton.
Example:
"MyAddinCommand1\nSEaddin\ Sample Command\nDisplays a message box\nSeaddin Command"
This example is identical to the one above with one exception. That being that an additional pop-up submenu named "Seaddin" will exist with "Sample Command" being an entry on that pop-up
Example:
"MyAddinCommand1\nSEaddin\\ Another Sample Command\nDisplays a message box\nSeaddin Command"
This example is identical to the one above with one exception. Due to the additional backslash, a separator will be inserted preceding the menu entry "Another Sample Command".