Book a Demo

Author Topic: Opening existing EA dialogs for elements  (Read 6255 times)

netripper

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Opening existing EA dialogs for elements
« on: October 31, 2008, 10:24:57 pm »
Hi,

I've made an add-in that lists a number of requirements in a matrix (table). I want to open the EA 'properties' window when I doubleclick on a requirement. Using the COM interface I'm unable to find a method to open EA dialogs for a specific element. Is this possible? And if so, how?

Btw, by 'properties' window I mean the window you get when you doubleclick an element or component in the project browser.

Thanks in advance.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Opening existing EA dialogs for elements
« Reply #1 on: October 31, 2008, 11:10:48 pm »
In the EA help contents, look at the MDG Add-in API reference. It is just before the EA Object Model. The various events are what you need to trap.

To do this you will have to write your automation application as an add-in. Depending on how you've worked until now this may cause some redesign. Stick with it though; it can definitely be done.

David
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Opening existing EA dialogs for elements
« Reply #2 on: November 01, 2008, 12:00:58 am »
Quote
I've made an add-in that lists a number of requirements in a matrix

You mean your add-in lists requirements in an own window (a modal form or a COM control registered with EA) and from there you want to open EA's in-built properties dialog for a requirement?
If there were such a function it should be in the EA.Repository object, but I think it is sadly missing.

Probably worth a feature request.

netripper

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Opening existing EA dialogs for elements
« Reply #3 on: November 01, 2008, 03:21:09 am »
Thanks for your responses.

Quote
In the EA help contents, look at the MDG Add-in API reference. It is just before the EA Object Model. The various events are what you need to trap.

To do this you will have to write your automation application as an add-in. Depending on how you've worked until now this may cause some redesign. Stick with it though; it can definitely be done.

David
It is my understanding that MDG only adds intercepting some actions performed by Enterprise Architect, for example for code generation. Not that it allows more access to initiating dialogs or stuff like that.

Quote
You mean your add-in lists requirements in an own window (a modal form or a COM control registered with EA) and from there you want to open EA's in-built properties dialog for a requirement?
If there were such a function it should be in the EA.Repository object, but I think it is sadly missing.

Probably worth a feature request.
This is indeed exactly what I mean. Sorry if I caused any confusion. :) I have my own dialog and I want to initiate the Properties dialog of an element myself (not to intercept it).

I was already afraid this would not be possible. If anyone has any way of doing this (perhaps even with workaround or dirty hack), please let me know. The alternative is to collect all data and make a dialog of my own.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Opening existing EA dialogs for elements
« Reply #4 on: July 10, 2009, 06:48:38 pm »
Did anyone actually make the feature request to expose the "OpenPropertiesWindow" to the API?
I was just looking for that exact function, but the only thing I found that is somewhat related an "OpenDiagram" and a "ShowInProjectView"

Geert