How to Visualise a Model Space?

In order to visualise a model space it has to be opened (if you are unsure how to do this there is a tutorial in the VIATRA wiki web page).

Adding elements to the graph view

To create the graph the model elements used in the graph have to be chosen. This can happen by right-clicking an element, and selecting the Add Selected Subtree to the Graph View menu item.

Selecting the subtree to add

The visualised subtree

After the selection happened in a short time the graph appear in the Model Space Visualisation view (and the view opens if it was not open).

Warning! If a lot of model elements are selected for inclusion, the addition process can hang the computer/Eclipse instance for quite a lot of time. To avoid this it is not recommended to select more than a few dozens of model elements.

For more details related to adding model elements to the graph view see: Selecting Model Elements.

Using the Graph View

It is possible to alter the graph output after it is created. With the help of the mouse the nodes can be moved anywhere in the view, thus manually correcting the layout.

In the view pulldown menu there are further options to select an automatic layout, hide some relationships, etc. These are described in detail in View Related Settings.

It is also possible to save the created graph as a PNG image using the view dropdown menu.

For more details related to customizing the graph view see: View Related Settings and Configuration.