Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include sourceAttachment, targetAttachment in diagram connection elements in Export model to Open Exchange XML file #1037

Open
oswalds opened this issue Mar 22, 2024 · 1 comment
Assignees

Comments

@oswalds
Copy link

oswalds commented Mar 22, 2024

The xml export of diagrams in a model to an Open Exchange XML file does not contain attachment points for connections. An import into another tool causes the diagram to be rendered using default connections to the "center" of an element which requires a lot of cleanup. Adding source/target attachment points for connections (without bendpoints) fixes the issue of rendering properly in the other tool.
Diagram as rendered by Archi that is exported:
archiDiagram

Diagram as rendered when imported by another ArchiMate tool using current export method (export file: testXMLExport_woAtt.txt):
existingImportResult

Diagram as rendered imported by another ArchiMate tool using suggested method of adding attachment points (export file: testXMLExport.txt):
improvedImportResult

Here are some snippets from classes in the code base showing how I addressed the issue:
IXMLExchangeGlobals.txt
XMLModelExporter.txt
DiagramModelUtils.txt

@jbsarrodie
Copy link
Member

Hi,

That's something which have been on my todo list for some years now. Thank you for sharing this code samples, but unfortunately they don't take Archi configuration into account (user can opt-out from orthogonal anchors), and don't work on rounded rectangle.

The real solution to that is to rely on orthogonal anchors code to get the read anchor point position.

I'll look at it when coArchi2 will be released.

Regards

@jbsarrodie jbsarrodie self-assigned this Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants