Book a Demo

Author Topic: Track occurrence of elements on diagrams?  (Read 3898 times)

Arjen

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Track occurrence of elements on diagrams?
« on: November 11, 2006, 01:22:16 am »
Is it possible to find on which diagrams model elements occur?

Context: I've been building some models with lots of unnamed startactivities. Also, I've deleted a number from diagrams, but not from the model. Now I'd like to cleanse my project view from all unused startactivities. However, I see no possibility to distinguish the 'orphans' from the ones in use.

Again: thanks for any help!

Arjen

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Track occurrence of elements on diagrams?
« Reply #1 on: November 11, 2006, 01:43:04 am »
Hi Arjen,

Are you wanting to do this specifically under automation?  If not, then Search Project [Ctrl+F] has a predefined search that will find orphans and may select the things you want...  Certainly it should be modifiable to your needs.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Track occurrence of elements on diagrams?
« Reply #2 on: November 13, 2006, 06:55:53 am »
From an element use Ctrl+U
From automation you need to recurse through the project view.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Track occurrence of elements on diagrams?
« Reply #3 on: November 13, 2006, 02:49:13 pm »
From Automation, you can also call the Find Orphans search using Repository.GetElementsByQuery which returns a collection of elements matching the search criteria (added in EA 6.5.795).

Dim results as EA.Collection
Set results = Repository.GetElementsByQuery("Find Orphans", "")