Book a Demo

Author Topic: Find points of use (element not directly on a diagram)  (Read 2398 times)

janet.edwards

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Find points of use (element not directly on a diagram)
« on: March 12, 2021, 10:57:47 pm »
Hello,

I am on EA Professional 15.2.1557.

I have two UML classes:

* MyDataType (stereotype: type)
* UserAccount

Class UserAccount is defined with attributes as follows:

* user_id: int
* user_name: MyDataType

In other words, I have a custom data type that I use in another type.

Class UserAccount is visible directly on a diagram but class MyDataType is not visible anywhere in the sense of not being a top-level element of a diagram because there is no need for it as MyDataType is merely a data type.

When I click "Find in all Diagrams" on MyDataType, there are no results unless I paste MyDataType directly into a diagram which makes it appear in the search result but on one hand this is completely unnecessary because now I have a class that has no business being in the diagram and on the other hand it, obviously, still does not tell me where, among what other types MyDataType can be found - it just tells me that MyDataType is somewhere on the diagram.

The documentation is rather vague on this point and just confirms what I have already learned in practice above: https://sparxsystems.com/enterprise_architect_user_guide/15.0/modeling/showelementusage.html.

The behaviour is completely different than a typical "Find points of use" in a programming IDE where all points of use will be always found, no matter in what capacity a given type / class / object is used.

Am I doing anything wrong or is that as it is supposed to work? If it is, how can I actually find points of use of each UML class, no matter how and where it is used in a model?

I do not have SysML in the Professional edition - would it change anything if I were using blocks instead of classes?

Thanks a lot.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find points of use (element not directly on a diagram)
« Reply #1 on: March 12, 2021, 11:07:14 pm »
You might want to have a look at the EA navigator add-in https://bellekens.com/ea-navigator/
That tool has some of the missing usages, such at type of attribute or parameter.

Combine that with the traceability view, and you can be pretty sure you have all dependencies.

Related: I once wrote a search query that lists all "real" orphans (elements not used anywhere in the model): https://bellekens.com/2015/10/16/searching-for-real-orphans-in-enterprise-architect/


Geert

janet.edwards

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Find points of use (element not directly on a diagram)
« Reply #2 on: March 13, 2021, 10:11:36 pm »
Thanks Geert, I will have a look at your add-ins.