Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Proagile on July 21, 2021, 01:54:39 am
-
Hi, I tried to add styles / properties to a connector through t_diagramLinks but they are not reflected in the diagram connectors, is there another way to apply styles (api or similar) or is it the only way through database?
Example of an insert:
"INSERT INTO t_diagramlinks (DiagramID,ConnectorID,Geometry,Style,Hidden,Path,Instance_ID) VALUES (" + esta.idDiagClon + ", " + nuevaConexion.ConnectorID + ", '" + estilo.Geometry + "', '" + estilo.Style + "', " + estilo.Hidden + ", '" + estilo.Path + "', " + id + ")"
The record in the database looks like this, but the diagram does not show the break in the connector
(https://i.imgur.com/WWxY2Ai.png)
-
Hard to tell, but you should add a break manually for that connector and compare the difference. That might give you a clue.
q.
-
Hard to tell, but you should add a break manually for that connector and compare the difference. That might give you a clue.
q.
Wot 'e sed!
Plus, having determined the difference required. Try to duplicate the manual style exactly via code to confirm there's not something else going on.
Paolo
-
Why are you inserting diagramlinks? You can use the API to create those for you.
I would never do that myself. Updating maybe, if I don't have another option, but never insert.
Geert
-
The problem was with a previous query so the API did not work for us, but once this was resolved we could do it through the API, thank you very much for the answers.