Book a Demo

Author Topic: Paste Diagram  (Read 3044 times)

Sivakumar R

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Paste Diagram
« on: September 12, 2013, 07:53:19 pm »
I have 2 packages for high level design and detailed design.
In the high level design, I have defined additional 2 packages for defining the classes and sequence diagrams. The same structure is repeated in detailed design. Kindly see the following illustration:

HighLevelDesign
 ---Classes
----------Class1
----------Class2
----Sequence Diagram
----------Diagram 1
----------Diagram 2
Detailed Design
----Classes
----------Class1
----------Class2
----Sequence Diagram
----------Diagram 1


The classes from the detailed design are already defined with more detailed functions and parameters.

Now, I have to copy the sequence diagram Diagram 2 from HighLevelDesign to Detailed Design. When I paste the diagram with shallow copy, it refers to the classes in the HighLevelDesign. Is there any way to change the reference to point to the classes from Detailed Design?

I tried to drag the classes from the detailed design and then change the connectors to point to the class from detailed design. But it is tedious, especially on the big diagrams. Is there any properties or references we change so the classes will be linked to the detailed design?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Paste Diagram
« Reply #1 on: September 12, 2013, 08:51:25 pm »
If you are using object in your sequence diagram you should be able to relatively easy change the classifier of the lifeline.

If you are using classes then there is no easy solution.
I've written a function in one of our add-ins to replace the class of a element in a sequence diagram. I'm afraid that (or defining a model transformation) is the only option then.

Geert

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Paste Diagram
« Reply #2 on: September 12, 2013, 11:11:45 pm »
you may use set target and source option from connector context menu instead drag and drop.
Nabil

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Paste Diagram
« Reply #3 on: September 12, 2013, 11:31:36 pm »
It looks as if you're using classes in sequence diagrams. Don't! Use lifelines and classify them with the according classes. In that case you can change the classifier via Ctrl-L in the lifeline.

q.