Archi Forum

Archi => General Archi Discussion => Topic started by: JoCriSem on May 19, 2021, 12:35:33 PM

Title: Import GitLab-located model into another model
Post by: JoCriSem on May 19, 2021, 12:35:33 PM
Hi, I am using the collaboration plugin to store my models in GitLab.  Some of the models need to be imported into new models, but am unsure how to do that.

When saving the .archimate files locally, one just picks up the required .archimate file and done.

Anyone any idea?

Thanks.
Johan.
Title: Re: Import GitLab-located model into another model
Post by: Phil Beauvoir on May 19, 2021, 12:42:49 PM
A model that is used in the Collaboration Workspace is saved as a "temp.archimate" file at a location like:

path_to_folder/model-repository/repository_name/.git/temp.archimate

But the the ".git" folder might be hidden on Mac and Linux, so you'd need to show hidden files.

Alternately:

1. In the History View select the latest commit
2. Right click and select "Extract model from this commit"
3. Select the model in the Models Tree
4. Edit Model name and save somewhere
5. Import it
Title: Re: Import GitLab-located model into another model
Post by: JoCriSem on May 19, 2021, 13:20:23 PM
Thanks Phil.  The .git folder was the evil element  :D
Title: Re: Import GitLab-located model into another model
Post by: Jean-Baptiste Sarrodie on May 19, 2021, 17:00:31 PM
Hi,

Another way of getting the model stored on git in the .archimate format is simply to do a "File > Save As". You'll end up with a copy of you model that you can then import into another model.

Regards,

JB
Title: Re: Import GitLab-located model into another model
Post by: Phil Beauvoir on May 19, 2021, 17:03:41 PM
Quote from: Jean-Baptiste Sarrodie on May 19, 2021, 17:00:31 PM
Hi,

Another way of getting the model stored on git in the .archimate format is simply to do a "File > Save As". You'll end up with a copy of you model that you can then import into another model.

Regards,

JB

D'oh! I missed the obvious...  ;)