Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: utkarsh on May 06, 2008, 09:34:47 pm

Title: Search DI from repository
Post by: utkarsh on May 06, 2008, 09:34:47 pm
Hi,

Is searching Design Item in a repositiry is possible through EA API in code?
I do not want to search it manually by iterating over each element of the package.

Thanks in advance.
Title: Re: Search DI from repository
Post by: thomas.kilian on May 07, 2008, 04:15:23 am
Design Item?

However, the API does not offer much in that respect. Go, write a SQL :-/
Title: Re: Search DI from repository
Post by: Eve on May 07, 2008, 07:45:13 am
Probably the easiest way to do this is to define a search and tell EA to run it using Repository.GetElementsByQuery.

If the search needs to be executed on multiple computers export the search and add it to EA using Repository.AddDefinedSearches.
Title: Re: Search DI from repository
Post by: utkarsh on May 15, 2008, 08:03:32 pm
Thanks  :)