Reputation: 91
Developing an Extension in Enterprise Architect, it's possible to call Repository.OpenDiagram() function and open a specific diagram. Using the Diagram.SelectedObjects, objects on that diagram can be selected and the list of the selected ones is accessible. However, there I need to focus on a selected object, but cannot find the corresponding EA API/function.
How could I focus on an object so that it be displayed in the center of diagram window (without changing the real position of the object)?
Thanks in advance for any hint!
Upvotes: 1
Views: 185
Reputation: 13784
You can't, except if you use a windows library to simulate clicks on the scrollbar or something like that.
But I'm not recommending that approach as you'll never be sure it will actually put the element in the center.
Upvotes: 1