8.5.1. Layouts for Architecture Analysis

8.5.1.1. Background

Architecture Import and Check has been configured for a project.

8.5.1.2. What can be configured?

You can specify a layout for the architecture view in gravis and use this layout when inspecting the architecture check results.

Note

If you model the architecture in gravis, use an architecture project instead (see Architecture Projects). It stores the layout of the architecture view in the project directory under version control and installs it when the project is opened, so the steps below are not needed.

8.5.1.3. What needs to be done?

  1. Run your architecture_check once, for example, by running the analysis in CI.

  2. While the analysis is running, define a directory where the layouts will be stored. This directory should be distributed to all developers who need to open the architecture check results or work on the architecture model. For example, choose a subdirectory of the project configuration and store it in the VCS.

  3. Define a method for all developers to set the config option /Tools/Gravis/layout_directory to this directory:

  1. Configure this directory in each developer’s User Profile in $HOME/.bauhaus,

  2. or configure this directory in a configuration layer, either in the project configuration or in a company- or department-wide configuration layer.

Example configuration of a layout_directory for :tool:`gravis`.
  1. Download the resulting RFG from the WebUI. Please note that the filename of this RFG is used to identify the layout directory. If the filename is changed, the layout lookup will fail.

  2. Open gravis with the layout_directory option configured to the specified directory and load the RFG.

  3. Open the Architecture view.

  4. If available, load a layout file that was stored when the initial layout was created (right-click on the background, choose Layout storage → Import layout...). Alternatively, expand and rearrange the nodes to define the desired standard layout.

  5. Right-click on the background to open the context menu, then choose Layout storage → Create new layout... to store the layout in the defined folder.

  6. Check in and update the layout in your VCS.

  7. Once the RFG is downloaded and the layout_directory is correctly set, the Architecture view will be displayed with this layout. If you run the architecture check from gravis, the result view will also be displayed with this layout.