Using Custom Views to filter elements in diagrams and browser

You can define Custom View elements for your model to act as filters in determining which elements should be displayed in a given diagram and to control how the elements should be formatted. Custom Views can be applied individually or in combination in order to customize the appearance of a diagram. Custom Views can also be used to filter the display of model elements in the browser.

Creating a Custom View

To add a new Custom View to your model:

  1. Right-click a package to display the pop-up menu, and select Add New > CustomView.
    Features window for Custom View elements
  2. When the Features window is displayed, carry out the following steps on the General tab:
    • Specify the Criteria Type:
      • Element Types - for selecting specific types of elements, such as classes and ports
      • Queries - for selecting queries that you have defined in your model
      • Model Elements - for limiting the display to only the specific model elements that you select
    • Specify the Criteria. Depending on the criteria type that you selected, this will be specific element types, specific queries, or specific model elements
    • Select the Show relations on diagrams option if you also want to display the connectors that exist between visible elements.
    • Click Format... if you want to customize the appearance of the elements in the diagrams. This opens the standard Formatting window.
    • For each type of element you want to format, select the metaclass from the list and click Format selected metaclass.

Applying Custom Views to filter elements in browser

Once you have defined one or more Custom Views in your model, you can follow these steps to apply these Custom Veiws in order to filter elements in the model browser:

  1. In the filter list at the top of the model browser, select Custom Views.... All of the Custom Views that you have defined in your model will be listed in the Output window.
    Apply Custom Views to browser
  2. Make sure that the Activate Custom View button on the right is pressed.
  3. Select the individual Custom Views that you want to apply to the browser. The elements in the browser are filtered accordingly.
  4. If you want the same filters to be applied to displayed diagrams, select the Apply on diagrams option.

Applying Custom Views to customize diagram appearance

Once you have defined one or more Custom Views in your model, you can follow these steps to apply Custom Views in order to filter elements and control the formatting of elements in individual diagrams:

  1. Right-click the diagram, and select Custom View.... The Custom View window is displayed.
    Apply Custom Views to a diagram
  2. Verify that the Activate Custom View button is pressed.
  3. Select the Custom Views that you want to apply to the diagram.
  4. Click Dismiss.