Author Topic: Diagram Usage automated in model search  (Read 4908 times)

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Diagram Usage automated in model search
« on: August 18, 2011, 09:08:27 pm »
Hi!

is it possible to creat an sql search on an query about all elements with type "requirement" in a whole package?

I want to get the output of "Find in all Diagrams" for all elements within a package and its child-packages.

Doesn anyone allready have such a search-query or automation?
It would be great help for me.

Thank you

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13288
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Diagram Usage automated in model search
« Reply #1 on: August 18, 2011, 11:42:13 pm »
yes it is possible.
No I don't have something like that yet

geert

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Diagram Usage automated in model search
« Reply #2 on: August 19, 2011, 05:26:41 pm »
Do you have any hint for me how to do that?

Thanks
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13288
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Diagram Usage automated in model search
« Reply #3 on: August 19, 2011, 05:45:39 pm »
You'll need to query
t_object, join it with t_package for the owning package then join t_package a couple of times to get get the subpackages
and then join with t_DiagramObjects and then t_Diagram.

Geert

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Diagram Usage automated in model search
« Reply #4 on: August 19, 2011, 09:42:59 pm »
SELECT t_object.Object_ID, t_object.Alias, t_object.Note, t_object.Name, t_diagram.Diagram_ID, t_diagram.Name
FROM t_object, t_diagram, t_diagramobjects
WHERE t_object.Object_Type = 'Requirement'
AND t_object.Object_ID = t_diagramobjects.Object_ID

This works somehow, but some Object.Name doesn't work and all Objetct.ID's are here two times.

Is it possible to cut the doubled entry and list all names?

Is it also possible to vie it vice versa and show only those which are not listed in diagrams?

Thanks in advance
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13288
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Diagram Usage automated in model search
« Reply #5 on: August 19, 2011, 10:31:51 pm »
Yes, all of that is possible.
Sadly enough I don't have time right now to do it for you :'(

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Re: Diagram Usage automated in model search
« Reply #6 on: August 22, 2011, 08:24:50 am »
RE: Finding objects not on any diagram. Try the Find Orphans search.

You can also customize this to restrict it to requirements if needed.

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Diagram Usage automated in model search
« Reply #7 on: August 22, 2011, 04:53:28 pm »
Find Orphans helps mit a bit further but is just half of the way. It is not only needed to know, IF they are all used or not but also WHERE they are used.

Another question: is it possible to generate and print the output of a SQL-Search behind a normal Generated rtf-Report of a Package?
Or do i have to print them out seperated?
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website