81
Automation Interface, Add-Ins and Tools / Re: t_diagramlink Issue when automating Connector creation
« Last post by ejafman on April 18, 2026, 01:15:59 am »You DA MAN!
My "real" SQL driver for the export of "connectors" is this:
Guess I have to tweak the code to find all diagrams that have both classes, and force a save. Saving the diagram seems to be the only way to make it "stick"
My "real" SQL driver for the export of "connectors" is this:
Code: [Select]
select rel.ea_guid
from t_diagram diag,
t_diagramlinks dl,
t_connector rel,
t_diagramobjects sdo,
t_diagramobjects edo
where diag.Diagram_ID = dl.DiagramID
and diag.Diagram_ID = sdo.Diagram_ID
and diag.Diagram_ID = edo.Diagram_ID
and instr(diag.PDATA, 'HideRel=1') = 0
and dl.ConnectorID = rel.Connector_ID
and rel.Start_Object_ID = sdo.Object_ID
and rel.End_Object_ID = edo.Object_ID
and dl.Hidden = 0
and rel.Connector_Type in ('Aggregation', 'Association', 'Generalization')
and diag.ea_guid in ('{81D3FBA1-4F3F-4141-88C6-4CDACBB8DEB0}')
Guess I have to tweak the code to find all diagrams that have both classes, and force a save. Saving the diagram seems to be the only way to make it "stick"
Recent Posts