Book a Demo

Author Topic: Check existing window in a  repository  (Read 4336 times)

sandipc

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Check existing window in a  repository
« on: October 28, 2011, 09:34:20 pm »
How can I check an existing window in a repository?
We can add new window using Repository.Addwindow method,but how can I check whether the named window(suppose w1) already exists in a repository ?


Thanks,

Sandip Chakrabarti
[email protected]

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Check existing window in a  repository
« Reply #1 on: October 29, 2011, 12:34:00 am »
I don't think you can

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Check existing window in a  repository
« Reply #2 on: October 29, 2011, 07:41:44 am »
The API is misleading. The object Repository is the Repository-Instance running in the windoze environment. The window is not stored in the physical repository. So you might check your windoze handles to find it.

q.

stevesavage

  • EA User
  • **
  • Posts: 119
  • Karma: +4/-0
    • View Profile
Re: Check existing window in a  repository
« Reply #3 on: November 01, 2011, 05:52:24 am »
Do you mean Repository.GetCurrentDiagram() to get the current loaded diagram?