uml – enterprise architect scripting in java: how to change the way of a connector?

uml – enterprise architect scripting in java: how to change the way of a connector?

You can set the linestyle to Orthogonal – Square or Lateral – Vertical to achieve this.
To do this, you need to get the DiagramLink and set its style.

Below are some combinations

(for Orthogonal Square) Mode=3;TREE=OS;

(for Lateral Vertical) Mode=3;TREE=LV;

Like elements, whose visual representation in one specific diagram is represented by a DiagramObject, a DiagramLink controls the display of one connector in one diagram. So if you want to change the connectors appearance in one diagram without affecting any others, you need to retrieve the relevant DiagramLink from Diagram.DiagramLinks and make your changes to that.

No method along your suggested lines exists, so the simplest way forward is probably to draw some connectors that look the way you want them and then check the database (t_connector and t_diagramlinks) to see how that geometry is represented.

uml – enterprise architect scripting in java: how to change the way of a connector?

Leave a Reply

Your email address will not be published. Required fields are marked *