archi icon indicating copy to clipboard operation
archi copied to clipboard

[Feature Request] UI for changing relation type

Open radeksvarz opened this issue 5 years ago • 3 comments

Version of Archi

4.4 32b and 4.7.1 64b

Archi Plug-ins

none

Operating System

WIN 10

Actual Behaviour

There are cases when after some investigation user wants to change the relationship type.

E.g. changing "Associated to" into "Serves" relation.

Current way is to draw the new relation and remove the old one. This leads to mistakes, when the original relation is present in more views.

Workaround is to edit the .archimate file and change xsi:type="archimate:AssociationRelationship" into the desired one.

Expected Behaviour

a) add change action into the contextual menu of the existing relation in the view image

"Change relation type to..." would list allowed relation types

b) add change action into the contextual menu of the existing relation in the model

image

"Change relation type to..." would list allowed relation types

radeksvarz avatar Aug 14 '20 11:08 radeksvarz

This request has been proposed several times as well as changing element type. The problem is not so easy to solve in native code because of multiple changes and multiple undo/redo commands. But it could be done, when I get some time to look at the problem again.

It can, however, be achieved with a jArchi script, some pointers here - https://gist.github.com/smileham/a989e42e8db2d811f5f1427147b39e2e

Phillipus avatar Aug 14 '20 11:08 Phillipus

@Phillipus Apologies. I tried to find relevant issues, but without success.

radeksvarz avatar Aug 14 '20 13:08 radeksvarz

@Phillipus Apologies. I tried to find relevant issues, but without success.

No problem.

Phillipus avatar Aug 14 '20 13:08 Phillipus

This is in Archi 5.1 beta.

Phillipus avatar Jul 01 '23 08:07 Phillipus