Book a Demo

Author Topic: Weird copy/paste diagram behaviour  (Read 5915 times)

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Weird copy/paste diagram behaviour
« on: January 15, 2018, 08:15:20 pm »
Hello,
I observed a strange behavior when copying and pasting a diagram than I cannot explain (EA 13.5 and EA 12.1).
Source diagram:
- contains class elements
- contains instances of classes
All elements are in the same package as the source diagram.

Newly pasted diagram (paste as shallow copy):
Good: The diagram also contains classes and instances, and the classes refer to the original elements (links to them).
Bad: The instances are copies of the "original instances". So in the project browser now I have copies of all instances. The new diagram now links to the duplicated instances, instead of linking to the original ones.

Any other copy method (deep, smart) does also duplicated the elements in the diagram, as expected. But this is not what I want.

Any idea if this behavior is normal? And (more important) why is this normal?
Any idea how to get a copy/clone of a diagram, without duplicating the elements in the copied diagram?


Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Weird copy/paste diagram behaviour
« Reply #2 on: January 15, 2018, 08:44:19 pm »
Hello Boron,

I hope nizam clarified your first question
but to answer how to get a copy without duplicate. Open source diagram do ctrl + A and in target use ctrl + V

Best Regards,
Nabil
Nabil

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Re: Weird copy/paste diagram behaviour
« Reply #3 on: January 15, 2018, 09:52:06 pm »
OK, copying the diagram content instead of the diagram itself should have been my idea :).
That works for us. It even is faster than copying a diagram incl. content.

But nevertheless the observed behavior, as linked by Nizam, is really weird and illogical.

Thanks a lot.