Book a Demo

Author Topic: Find element use in diagrams... at package level  (Read 3083 times)

PurpleCat

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Find element use in diagrams... at package level
« on: June 28, 2011, 12:58:05 am »
Hi folks,

I'm trying to extend the 'Find in all Diagrams Ctrl+U' feature to work at package level. This is so that I can quickly check whether elements in a package have been used elsewhere before I delete it. I've spent three days trying to write a script with numerous problems (which I'm happy to detail if anyone's that interested).
Surely someone has done this before? :-?

Extensive searching here and on the worldwidegoogleweb has yielded nothing. Help/pointers/code! greatly appreciated.

Thanks in advance.

p.s. perhaps this should be a standard tool in EA?

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 element use in diagrams... at package lev
« Reply #1 on: June 28, 2011, 04:05:13 pm »
PurpleCat,

I'm sure this can't be that hard to write.
"Find in all diagrams" is a pretty easy function to write, so all you need to to is loop all elements in the package and call that function for each of them.
You can use my C# EA add-in framework as a basis.
The EA Navigator add-in from the Enterprise Architect Toolpack already has a feature to show the diagrams for operations, so that part can be re-used as well.

Geert