Author Topic: Duplicating 1:1 Views and (corresponding) Element from a Model to Another Model  (Read 157 times)

michel.wicky

  • Member
  • **
  • Posts: 14
Hello Everybody,
I'm searching for a plugin that allow to duplicates 1:1 (without changing the ids) one or more Views with their corresponding element from a Model to Another one. The goal is to export the target Model in Archimate Interchange format just for a limited set of Views and Elements.
Does something already exists somewhere ?
I just found CopyElementsToModel that partially solve the problem.
Thanks for taking care.
Michel

Phil Beauvoir

  • Administrator
  • Hero Member
  • *****
  • Posts: 1558
  • Code Punk
    • Archi
Hi,

could you simply make a copy of the file, open it and remove all unwanted Views and concepts then export?

Phil
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

michel.wicky

  • Member
  • **
  • Posts: 14
Thank you answering Phil.
We have thousands of elements and many, many views with sometimes confidential information.
It makes more sense to export only the elements and relations of a view.
« Last Edit: June 21, 2021, 13:03:07 PM by michel.wicky »

Jean-Baptiste Sarrodie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 695
  • Archi Evangelist and Contributor. Visionary.
    • About me...
Hi,

We have thousands of elements and many, many views with sometimes confidential information.
It makes more sense to export only the elements and relations of a view.

That's really easy to create a script which removes everything but the view itself and its content. This involves moving the view to the root of "Views" folder, removing any other view, then running a script like this one.

Regards,

JB
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

michel.wicky

  • Member
  • **
  • Posts: 14
This is making my day !
A nice workaround.
Thanks a lot.