Archi Forum

Archi => Share your Models, Templates and Reports => Topic started by: chdessus on October 04, 2019, 14:37:11 PM

Title: MERGE 2 (or MORE) MODELS INTO ONE
Post by: chdessus on October 04, 2019, 14:37:11 PM
Hello,

Today I merged 2 models into 1. I saw some discussions and questions on this subject on the forum.
Here are the steps followed. Feel free to improve it !
Please note that I'm a business architect. So I'm really a dumb for programming anything ! To do the merge, you only need the CSV files and XML model files from ARCHI.

See attached file.



Title: Re: MERGE 2 (or MORE) MODELS INTO ONE
Post by: Jean-Baptiste Sarrodie on October 04, 2019, 18:52:23 PM
Hi Christine,

Thank you for sharing, that's an interesting way of merging models (I have another trick for doing it but this involves more git knowledge).

One remark:

QuoteOpen the CSV files with NOTEPAD or NOTEPAD++ and change all Archi extract format
inadequacies such as ="" or """;
▪ ="" changed to "
▪ """; changed to ";
▪ If you are really lucky, you may find more. You have to do that with the 3 CSV files: Elements, Properties and Relations

This should not be needed. If you have such character sequences, this means that you've done the export using the "Use Excel leading zero/spaces workaround": simply redo the export without it (this option is needed only when you plan to open your CSV in Excel).

Regards,

JB
Title: Re: MERGE 2 (or MORE) MODELS INTO ONE
Post by: Phil Beauvoir on October 04, 2019, 20:11:26 PM
Thanks for sharing, Christine.  :)

(Hopefully we can come up with an easier way to merge models one day.)
Title: Re: MERGE 2 (or MORE) MODELS INTO ONE
Post by: Hervé on October 12, 2019, 15:49:09 PM
My 2 cents  ;D

There is a much simpler way if you installed my database plugin as it includes the ability to import components from the database in your model. These components might be elements, views and models.

So the steps would be:

Hope this helps
Hervé
Title: Re: MERGE 2 (or MORE) MODELS INTO ONE
Post by: Phil Beauvoir on March 07, 2020, 19:31:37 PM
Archi 4.7 will have a new feature - merging models by importing one model into another. See https://forum.archimatetool.com/index.php?topic=803