Book a Demo

Author Topic: Scrolling to object in a diagram  (Read 4588 times)

Fabio Riera

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Scrolling to object in a diagram
« on: February 15, 2014, 05:55:06 am »
Hello friends

I open a diagram with Repository.OpenDiagram(9999).
Now, how do I scroll the screen to position (x,y) show an element?

Thanks in advance!

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Scrolling to object in a diagram
« Reply #1 on: February 15, 2014, 09:43:21 pm »
 not possible afaik  :(

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Scrolling to object in a diagram
« Reply #2 on: February 16, 2014, 06:56:46 am »
I have no Windoze running at the moment, but from memory there is a Diagram collection where you can set what is selected. I can't remember whether a selected element is getting focused. But as stao said: you can't focus a certain position of the diagram. Worth a feature request.

q.
« Last Edit: February 16, 2014, 06:57:07 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Scrolling to object in a diagram
« Reply #3 on: February 17, 2014, 05:52:56 pm »
I can confirm that you can't.
You can select an element, or a connector on a diagram, but there's no way of knowing which part of the diagram is visible, nor is there a way to manipulate that.

Such a feature would be very useful for me as well.

Geert