archimatetool / archi-scripting-plugin

jArchi - Scripting for Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
118 stars 33 forks source link

Ability to create diagram connections #96

Closed michael-tapp-vodafone-com closed 2 years ago

michael-tapp-vodafone-com commented 2 years ago

I'm trying to write script where I want to create a diagram connection, for example, a connection between a note & an element. When I look in the API however, there doesn't seem to be a way to do this (unless I'm missing something).

There is createRelationship - but (as I've found) this only works for model relationships rather than visual connections There is add(relationship) - but this wants an existing relationship and because I can't create one, it doesn't work There is createObject - for visual objects on a diagram, but this seems to be objects only rather than relationships

Is this a missing feature? Or am I missing something?

Related too, there some visual aspects of those connections that are not available for standard relationships such as changing the connection from solid, to dotted, dashed etc and the source/target style. Again, unless I'm missing it, am I correct in thinking those aren't currently accessible from JArchi?

Thanks

Michael

Phillipus commented 2 years ago

Hi Michael, creating non-ArchiMate connections is on the to-do list and is being worked on:

https://github.com/archimatetool/archi-scripting-plugin/commit/a407f10a1213851cad8a1b6efddb2b7aaf67288d

Regards,

Phil

michael-tapp-vodafone-com commented 2 years ago

Aha, thanks Phil, I wondered as much :).

Michael

Phillipus commented 2 years ago

This is now in jArchi 1.1.1 released today.

michael-tapp-vodafone-com commented 2 years ago

Fantastic, thanks Phil.