Book a Demo

Author Topic: Search model elements by GUID  (Read 3870 times)

tha1st

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Search model elements by GUID
« on: May 04, 2010, 10:22:33 pm »
Hello *,

I use EA 7.5 (build 850) to model artifacts and requirements. I don't use the document generation features so I must reference in my own documents to specific artifacts/elements in EA.

I think this is what I need:

Copy Reference -> Copy Node Path to Clipboard
produces: NLP.Start.Start - Analyse

Copy Reference -> Copy Node GUID to Clipboard
{FF62D4B1-E093-4ea1-817F-C578BDDB26F0}

But I fail to find the artifacts using these references. So how can I find/search these elements with EA? The model-search feature as well as the "Find in Project Browser" fails to select/find these values.

My EA model got over the time quite complex. So it's really hard to find some specific diagram / component when using manually the project browser.

grüße,
\thomas

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Search model elements by GUID
« Reply #1 on: May 04, 2010, 10:43:49 pm »
Thomas,

you could write a simple SQL search query to find the elements based on the ea_guid
Check the community site for examples.

Geert

tha1st

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Search model elements by GUID
« Reply #2 on: May 04, 2010, 11:09:57 pm »
Hi Geert,

I'm confused. I only want to guide the reader of my document to the right place in the project browser in EA.

How could me help a SQL search query for that?

or can I execute SQL query within EA?

Quote
Thomas,

you could write a simple SQL search query to find the elements based

...

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Search model elements by GUID
« Reply #3 on: May 04, 2010, 11:25:41 pm »
Yes you can create and execute the SQL searches from whithin EA.
Another option you might want to consider is the ea protocol handler.
That is a third party addin that can select things in EA.
Use the top left search button to find information about it in the forum.

Geert

tha1st

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Search model elements by GUID
« Reply #4 on: May 05, 2010, 03:45:18 am »
Geert,

well thats fantastic!! the ea-protocol handler is very nice solution! I'm already about to introduce it to my team.. great tip!!

But last question: I have now a way to "link" from outside into EA elements by GUID. But I still don't get how I can select model elements from WITHIN EA by GUID.

Must I create a new Search Query (SQL Editor) my own?

grüße,
\thomas

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Search model elements by GUID
« Reply #5 on: May 05, 2010, 03:39:21 pm »
Yes,

You can use the example sql searches on the community site as a basis.
If you are using a "real" database as a repository you could select a union of attributes, operations, elements, diagrams and relations.
On eap files (ms-access) you'll have to write separate queries for it since the driver for access doesn't allow unions in those queries.

Geert