Thursday, 17 November 2016 10:04

Fast access to each diagram in Enterprise Architect

Written by
Rate this item
(2 votes)

We have often to do with EA models we’ve never seen before. In such cases, you have either to click through the project tree (can be confusing and time-robbing) or you use some pre-defined Model Views.

The picture bellow shows how it could look like on your machine when you’ve read the article to the end.

Model Views - Diagrams

The feature could be very helpful also in other situations and we wonder why it’s used so rarely. Using Model Views you can create access points to any elements you want independently from its position in the project browser. It can be compared with database views if you are familiar with databases.

The only thing which is a bit annoying while creating a view, you have to create a model search first. If you use the Query Builder, the created search can be used as a basis for a view without any problems. In case the functionality of the Query Builder is insufficient and you need to create an SQL query, it has to fulfill some criteria. Within your query, you need to define three fields: CLASSGUID, CLASSTABLE and CLASSTYPE, as shown in the following example:

SELECT ea_guid AS CLASSGUID, 't_diagram' as CLASSTABLE, Diagram_Type AS CLASSTYPE, Name, [Version], Author, Stereotype, CreatedDate, Diagram_Type, ModifiedDate
FROM t_diagram
WHERE t_diagram.Diagram_Type = 'Statechart'
ORDER BY ModifiedDate ASC

Diagram Views help a lot to explore unknown projects. Thus, we have created views for all common diagram types.

Feel free to download and to use them: Searches and Views

First step – open Model Search / Find in Project dialog and import the xml file that contains the definition of searches:

Model Views - Import Searches


Second step – activate Model Views window and import the xml file that contains the definition of views:

Model Views - Import Views


Read 6639 times Last modified on Thursday, 17 November 2016 23:20
Dr. Konrad Wieland

Dr. Konrad Wieland

LieberLieber Software GmbH (Consultant)
Dr. Konrad Wieland is an expert in modeling and model-based software development in the most diverse domains. Even during his dissertation at the Vienna University of Technology, he published a host of articles on team-based modeling and software configuration management. Since 2012, as Consultant and Product Manager at LieberLieber he has continued to expand his expertise in these and other areas in and around Enterprise Architect.


  • Comment Link Guillaume Wednesday, 18 January 2017 07:31 posted by Guillaume

    Hi Konrad,
    Thanks for sharing this tip. Note that from version 13, this is available via the Start ribbon > Search > Browse for Diagram.
    It even lets you filter by diagram type.

  • Comment Link Helmut Ortmann Friday, 30 December 2016 22:55 posted by Helmut Ortmann

    Hello Conrad,
    if you put the Searches and the Views in a MDG you can easily structure Searches and Views and switch them on/off as you wish. The easiest way is to make the Addin for the Searches and add the Views to the *.xml file. I haven't managed it with the *.xml builder.

    I changed some queries to SQL to make sure the results are sorted.

    If you want the MDG drop me a mail.

    Kind regards,


  • Comment Link Helmut Ortmann Thursday, 29 December 2016 06:30 posted by Helmut Ortmann

    Hello Konrad,

    Thanks a lot for this valuable article and the predefined Model Views. They are easy to use, and you get arbitrary information at your finger tip.

    Besides, with "'t_diagram' as CLASSTABLE" I learned how to enable quick navigation for connectors from a search result to be used in diagrams.

    Kind regards,

Login to post comments