Book a Demo

Author Topic: Find in all Diagrams  (Read 4096 times)

SMaric

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Find in all Diagrams
« on: November 29, 2012, 11:46:25 pm »
In the EA Project Browser panel
I can select an Element, right-click on it & select
'Find in all Diagrams'

This results in a 'Element Usage' Dialog box being presented which lists all diagrams within the EA Model where my selceted Element has been used

Is there an equivalent Javascript API function - I haven't found anything that looks like it will do the job

I have coded a Model/Diagram search - but this is taking a long time as it has to check every Element on every Diagram

Can anyone suggest a better/faster method









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 in all Diagrams
« Reply #1 on: November 30, 2012, 12:02:37 am »
I don't think there's a ready made function, but it isn't very difficult to write one yourself.

In my EA Navigator add-in I use that type of thing all the time, see https://github.com/GeertBellekens/Enterprise-Architect-Toolpack for the (C#) code.

Geert

bctm

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Find in all Diagrams
« Reply #2 on: December 03, 2012, 10:56:30 pm »
I had the same problem and got a solution for C# here:

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1348747488/4

Perhaps it will help you, too.