How to change relations (from Composition to Agregation) in batch mode

Started by rvaneerd, December 13, 2024, 12:43:41 PM

Previous topic - Next topic

rvaneerd

Hi,

As I'm rather new to Archimate® and Archi I made a mistake.
I'm now facing the situation that in several views I implemented a Composition relation by dragging elements into a group.
These need to be changed into Aggregation relations.
I know, I can try to find them and delete the Composition relation and add an Aggregation relation.
But is there a more batch mode method that I can use?

Thanks for any ideas.

Regards,
Rob

Phil Beauvoir

Hi Rob,

you can change them by selecting them and right-clicking and choosing "Change Concept Type" and choose the required relationship type.

Phil
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

rvaneerd

Quote from: Phil Beauvoir on December 13, 2024, 12:49:27 PMHi Rob,

you can change them by selecting them and right-clicking and choosing "Change Concept Type" and choose the required relationship type.

Phil
Thanks Phil, but what if the relations are hidden within a Group element (which contains the other elements)?
Is there another way besides pulling them out of the Grouping element and doing this one by one?

Regards,
Rob.

Phil Beauvoir

Quote from: rvaneerd on December 13, 2024, 14:17:13 PMIs there another way besides pulling them out of the Grouping element and doing this one by one?

You could use a jArchi script.
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

rvaneerd

Quote from: Phil Beauvoir on December 13, 2024, 14:43:10 PM
Quote from: rvaneerd on December 13, 2024, 14:17:13 PMIs there another way besides pulling them out of the Grouping element and doing this one by one?

You could use a jArchi script.
Hi Phil,
Thanks but then I have to dig into jArchi.
Which is on my prioritized To-Do list.......

From my perspective, this topic can now be closed.

Regards,
Rob.

Phil Beauvoir

Or you could manually edit the .archimate file in a text editor and replace "archimate:CompositionRelationship with "archimate:AggregationRelationship" (assuming that the relationship is valid).
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Jean-Baptiste Sarrodie

Hi,

Quote from: rvaneerd on December 13, 2024, 14:17:13 PMThanks Phil, but what if the relations are hidden within a Group element (which contains the other elements)?
Is there another way besides pulling them out of the Grouping element and doing this one by one?

Changing the type of the relationship can be done using the "Set Concept Type" action from the contextual menu. This work from within a view but also the model tree, so if you're able to find these composition in the model tree, then you're able to quickly change their type.

Regards,

JB
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Phil Beauvoir

Quote from: Jean-Baptiste Sarrodie on December 13, 2024, 16:26:01 PMThis work from within a view but also the model tree, so if you're able to find these composition in the model tree, then you're able to quickly change their type.

Thanks, JB. I forgot about that!
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.