Book a Demo

Author Topic: How to copy a diagram?  (Read 2775 times)

ufechner

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
How to copy a diagram?
« on: April 28, 2006, 01:32:33 am »
Hello,

I want to copy a (state-) diagram.

I can select all elements, create a new diagram and paste them.

What I want is to paste the elements as new, and to keep the connections between the elements.

This doesn't work:

I can copy references, then EA keeps the connections, or I can past "as new", than I lose the connections.

Does anybody know a workaround for this problem?

Regards:

Uwe Fechner

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to copy a diagram?
« Reply #1 on: April 28, 2006, 05:06:43 am »
Hi Uwe,

Just to be clear... If I understand you correctly, what you want to end up with is a new state model, with:
  • A copy of each element; that is a new element for each element in the original.
  • A copy of each connector in the original; the copy of the connector would connect the element copies in the new diagram that correspond to the original elements that the original connector linked in your original model (whew!).

No problem here. Just do a deep copy. Follow the directions in the EA help explicitly. Don't take a shortcut. In help look for "Duplicate a Diagram." When I search EA help - build 789 - for "Copy" this is the top reference retrieved. Go through the process that they describe, and make sure you click the "Deep (duplicates ALL elements)" radio button in the copy dialog. BTW, remember you want to copy the new state model to a new package.

What you should end up with is a new diagram, looking just like the old one. However, each element and each connector is a copy of the analogous item in the original. Each element and link can be changed without affecting the original.

HTH, David
No, you can't have it!

thomaskilian

  • Guest
Re: How to copy a diagram?
« Reply #2 on: April 29, 2006, 02:25:46 pm »
Quote
Hello,

I want to copy a (state-) diagram.

I can select all elements, create a new diagram and paste them.

What I want is to paste the elements as new, and to keep the connections between the elements.

This doesn't work:

I can copy references, then EA keeps the connections, or I can past "as new", than I lose the connections.

Does anybody know a workaround for this problem?

Regards:

Uwe Fechner


Uwe,
what I can think of is to use a Copy-Transformation (there's a thread I talked about that). You can create this transformation quite easily and you will be able to copy elements and their associations.