1
General Board / Re: connectors stored in t_diagramlinks
« on: February 17, 2024, 02:38:08 pm »
Hello Mr. Geert,
I asked EA support, and they told me that the connector can only be shown in t_diagramlink when the diagram is modified and saved (for the case the connector is created in another diagram between two elements firstly). The original answer is as following "For example, if you have diagrams X, Y and Elements A and B are on both of those diagrams. On Diagram X you add a connector between A and B. You then open diagram Y and the connector will be displayed on the diagram but the t_diagramlink entry will not be added unless you modify the diagram and save".
So I made a script to add an extra unique-named element on the browser firstly, and then add element onto each diagram, and then delete the element from diagram, delete the element from browser, and saved the diagram, but it doesn't make the t_diagramlink fresh.
However it works with the manual operation following the exactly same steps as the scripts.
Do you know if diagram.update() function save the diagram or not?
Thanks a lot.
I asked EA support, and they told me that the connector can only be shown in t_diagramlink when the diagram is modified and saved (for the case the connector is created in another diagram between two elements firstly). The original answer is as following "For example, if you have diagrams X, Y and Elements A and B are on both of those diagrams. On Diagram X you add a connector between A and B. You then open diagram Y and the connector will be displayed on the diagram but the t_diagramlink entry will not be added unless you modify the diagram and save".
So I made a script to add an extra unique-named element on the browser firstly, and then add element onto each diagram, and then delete the element from diagram, delete the element from browser, and saved the diagram, but it doesn't make the t_diagramlink fresh.
However it works with the manual operation following the exactly same steps as the scripts.
Do you know if diagram.update() function save the diagram or not?
Thanks a lot.