Archi Forum

Archi => General Archi Discussion => Topic started by: logb33 on March 11, 2015, 08:08:19 AM

Title: Replace one relationship with another
Post by: logb33 on March 11, 2015, 08:08:19 AM
Is there a way of doing a "Find & Replace"-type change on relationships? For example, I'd like to replace a number of Aggregation relationships with Composition relationships, but I'd prefer not to have to make all the changes by hand.
Title: Re: Replace one relationship with another
Post by: Phil Beauvoir on March 11, 2015, 08:09:58 AM
Sorry, this is not possible.

Phil
Title: Re: Replace one relationship with another
Post by: Jean-Baptiste Sarrodie on March 11, 2015, 08:30:21 AM
Hi,

As Phil said, this is not possible for the moment, but this could be achieve through CSV export/import if the class check was disabled (asof now, when importing from CSV, Archi checks if an element with the same id exists and reject the change if it does and have a different class).

Of course this means that someone could easiliy screw up the model, so the Archi validator would have to be run.

JB
Title: Re: Replace one relationship with another
Post by: logb33 on March 11, 2015, 13:04:34 PM
Thank you both for the feedback.

For now, the model is small enough that the brute force approach won't take too long!