Author Topic: Focus element in diagram  (Read 3195 times)

lostwald

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Focus element in diagram
« on: April 12, 2013, 07:17:05 pm »
Hi,

I want to focus an element in a diagram by clicking on a corresponding message in the output. Like it is done in the model validation output tab. Writing to the output and registering to the clicking event is straightforward, but how can i focus the element ? So basically I would like to use the functionality of "Locate in current Diagram" from the context menu in the Project Browser.

Thanks in advance for any help :-)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Focus element in diagram
« Reply #1 on: April 12, 2013, 07:39:31 pm »
EADiagram
Quote
EaCollection SelectedObjects— Returns a collection representing the currently selected elements on the diagram. You can remove objects from this collection to deselect them, and add elements to the collection by passing the Object ID as a name to select them.

q.
« Last Edit: April 12, 2013, 07:40:36 pm by qwerty »

lostwald

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Focus element in diagram
« Reply #2 on: April 12, 2013, 08:01:44 pm »
Hi,

yes for sure this works to select it. I can also in addition select it in the project browser but it doesn't center the element in the diagram view.
Just to be sure: I have to use EA 9.3

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Focus element in diagram
« Reply #3 on: April 12, 2013, 08:37:35 pm »
The answer then is simple: you can'r easily do that. You might consider to ask for a new feature. But that may take a couple of years. Alternatively (some people use that really for similar purposes) is to simulate keyboard/click events. (Personally I think this is simply sick, but probably windoze minded.)

q.