Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Viking on June 09, 2025, 11:41:58 pm
-
Hi, is there a possibility to highlight / select a visible connector (aka link) in an open diagram via API? GUID and ID are known for both diagram and link. V.
-
The Diagram.SelectedConnector might help you.
-
The Diagram.SelectedConnector might help you.
That works, but sometimes you need to open another diagram, and then this diagram again to see the selected connector
Geert
-
The Diagram.SelectedConnector might help you.
Many thanks.
diagram.SelectedConnector = connector;
diagram.Update();
-
The Diagram.SelectedConnector might help you.
Many thanks. But that does not work for me (version 15) (with and without refresh). Any ideas, what I can do in addition?
diagram.SelectedConnector = connector;
Sparx.Repository.ReloadDiagram(diagram.DiagramID);
I'm pretty sure ReloadDiagram also resets the selected elements/connectors.
Geert
-
Yes. The diagram needs an update(). Sorry for editing my comment in the meantime. You were to fast for me ;)