|
|
Diagram Browser |
This helper presents a navigable, filtered view of all the diagrams in the project (or package).
|
Applicable To |
Project,
Package |
|
Menu
Entry |
Power
Pack Open Diagram Browser |
|
Applicable To |
Project, Package |
|
Menu
Entry |
Power
Pack Navigation Tools Generate Diagram Browser |
|
Demonstration |
In addition, the helper may be launched from the View menu or from the Power Pack Inspection Tools toolbar (if using Rhapsody 10+):


Note: All the properties mentioned below are read from the current selection (either a package or from the project) so a different browser may be configured for each package if desired.
The helper first collects all diagrams from the current scope. If a package is selected when the helper is launched then the scope is that package and its child packages, otherwise the scope is the entire model (excluding profiles*).
*To include profiles set the property below:
RhapsodyPowerPack.DiagramBrowser.IncludeProfiles
This is a comma-separated list of named profiles to include.
The helper then presents the information in a web page (important: see Forcing Browser Generation below). If using Rhapsody 10 then the web page is opened in the right-hand sidebar. If using Rhapsody 9 then this is opened in an external web browser.

Diagrams are organized by type onto tabs which by default use short names. For new terms, short names are derived from the following property (which also controls the prefix used in the diagram frame):
[DiagramType].General.SysMLDiagramKindTitle
Check the Rhapsody Properties tab in the Features View for the correct property to set on your new term. For example, for a new term based on Object Model Diagrams:
ObjectModelGe.General.SysMlDiagramKindTitle
For non-new terms then the short name is derived from a list of short prefixes based on the SysML naming:
· Activity Diagrams: act
· Class Diagrams: cls
· Communication Diagrams: com
· Component Diagrams: cmp
· Deployment Diagrams: dep
· Flowcharts:
fc
· Object Model Diagrams: omd
· Package Diagrams: pkg
· Sequence Diagrams: sd
· Statecharts: stm
· Use Case Diagrams: ucd
Hovering over a tab name displays the full diagram type name:

To disable short names and use the full diagram type name in the browser, set the following property to false:
RhapsodyPowerPack.DiagramBrowser.UseShortNames

Generated web pages are generated into [User_Temp_Folder]/Rhapsody Power Pack\Diagram Browsers\[Project Name]\[Scope Name]
When launched from the toolbar, a new web page is generated every time. If it is known that the model has not changed, then the project level property below changes this behaviour and the toolbar button opens any existing report instead of generating a new one. If the model has been updated, to force a new generation either delete the above folder, use the Generate Diagram Browser menu option or toggle this property back to true:
RhapsodyPowerPack.DiagramBrowser.ToolbarButtonForcesGenerate
By default, Diagram Views are included and are given a suffix of (View of XX) where XX is the diagram on which the view is based. To exclude diagram views, set the following property to false:
RhapsodyPowerPack.DiagramBrowser.IncludeDiagramViews
NOTE: There is a defect in Rhapsody 10.0.2 whereby if a Diagram View is open – the web browser panel becomes unresponsive. This has been reported to IBM. To re-enable it, close the Diagram View AND the web browser panel and re-open it.
The following properties allow the generated browser to be filtered to include only specific diagram types, or exclude diagram types (the Whitelist takes precedence if both are populated):
RhapsodyPowerPack.DiagramBrowser.DiagramTypeBlacklist
RhapsodyPowerPack.DiagramBrowser.DiagramTypeWhitelist
Both properties are comma-separated lists of User Defined Metaclasses. Use the Model Element Inspector to confirm the User Defined Metaclass for a specific diagram*:

*One exception is Flowcharts which have a user Defined Metaclass of ‘ActivityDiagramGE’ – the same as an Activity Diagram. For Flowcharts use the User Defined Metaclass of ‘Flowchart’