Author Topic: Search DI from repository  (Read 3043 times)

utkarsh

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Search DI from repository
« 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.

thomas.kilian

  • Guest
Re: Search DI from repository
« Reply #1 on: May 07, 2008, 04:15:23 am »
Design Item?

However, the API does not offer much in that respect. Go, write a SQL :-/

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Search DI from repository
« Reply #2 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.

utkarsh

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Search DI from repository
« Reply #3 on: May 15, 2008, 08:03:32 pm »
Thanks  :)