Book a Demo

Author Topic: Copy Elements Between Diagrams  (Read 11703 times)

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Copy Elements Between Diagrams
« Reply #15 on: May 05, 2015, 05:56:09 pm »
The workaround is as follows and does exactly what I was after:

1) Create a package at the same level of the package containing the diagram and entities in the diagram to be copied. This is the most important step otherwise the workaround does not work.

This means that if you have a structure like:
->Root
---->Package A
------->Diagram A
------->Entity A
-------.Entity B
------->Entity C
A package, let's call it Temp, needs to be created as follows:
->Root
---->Package A
------->Diagram A
------->Entity A
-------.Entity B
------->Entity C
---->Temp

2) Copy the diagram
3) Paste the diagram into Temp, this will paste all element in the diagram as links
4) Open the diagram copied into Temp
5) Select and Element, right click on it and choose Advanced\Convert Linked Element to Local Copy
This action creates a copy of the selected Element and most importantly all its relationships.
6) Modify the new diagram as required

Notes: The workaround requires a package otherwise it does not work.
Advanced\Convert Linked Element to Local Copy appears only if the folder where the diagram will be copied is at the same level as the folder contained the linked elements. If it is above and below it does not show. I presume this has something to do with scope.

Thanks to everybody who has provided all the pieces needed to fit this puzzle together.
« Last Edit: May 05, 2015, 05:57:45 pm by modesto.vega »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Copy Elements Between Diagrams
« Reply #16 on: May 05, 2015, 07:03:50 pm »
OT: another thread in the line of "where is my menu". Sparx is building the tower of Babylon here!

q.