Use diagram panels

A diagram opens in a panel beside the model it came from. What it draws can be a single element, a whole file, or a view, depending on the entry point you used: see Open a diagram for the three of them. This page covers what the panel offers once a diagram is on screen, which is the same whichever of the three it came from. For writing views, see Select diagram elements and Configure diagram views.

Controls

Modeler in action:

Visualization of the example model

Note

Refreshing resets any customizations, such as element layout or visibility settings.

In the diagram view, you can find many different controls that help you navigate and interact with the model. They are organized into two different panels:

  • View tools (Blue): The horizontal panel at the top containing tools such as “Select”, “Zoom”, “Pan”, “Zoom in”, “Zoom out” and “Fit to screen”.

  • Context tools (Red): The right-side panel containing tools such as “Show descendants”, “Remove element”, and “Go to source”.

View tools

Use the View Tools panel to move around the diagram and lay it out. Its controls run left to right:

View tools.
  1. Save As Image - Export current diagram as an image file

  2. Select - Select elements (blue highlight). Multi-select with drag or Ctrl/Cmd+Click

  3. Pan - Move diagram view with left mouse button

  4. Navigate links - Click connections to jump between elements

  5. Marquee zoom - Zoom to area by drawing rectangle

  6. Interactive zoom - Zoom in/out with mouse up/down

  7. Zoom fit - Adjust view to show entire diagram

  8. Overview - Toggle mini-map for navigation in large diagrams

  9. Hierarchical Layout - Arrange diagram in tree structure

  10. Orthogonal Layout - Arrange diagram in orthogonal structure

  11. Global Layout - Auto-arrange entire diagram

  12. Incremental Layout - Auto-arrange while preserving relative element positions

  13. Search - Find and navigate to diagram elements

Also, double-clicking on white space inside of an element (outside of the name box) will “drill down” into it. Similarly, double-clicking on the white space outside of the element moves the view back up one level.

Context tools

The context tools panel acts on one element at a time. On macOS it appears on the right side of the screen; on Windows and Linux, right-click an element to reach it.

Context tools.
  1. Load Children as Tree - Display immediate children of selected elements

  2. Load All Descendants as Tree - Display all descendants (depends on model complexity, use with caution on large models with 10k+ rows of code)

  3. Load Children as Nested Tree - Display immediate children in nested format

  4. Load All Descendants as Nested Tree - Display all descendants in nested format (depends on model complexity, use with caution on large models with 10k+ rows of code)

  5. Remove Selected - Hide selected elements (preserves descendants)

  6. Remove All Descendants - Hide descendants of selected elements

  7. Remove All - Clear all elements from the diagram

  8. Go To Source Definition - Jump to and highlight element definition in model file

The viewer requires Java, and Modeler detects it automatically. See Tom Sawyer SysMLv2 Viewer if it is installed somewhere Modeler does not find it.