Book a Demo

Author Topic: Sequence diagram connectors don't copy  (Read 6080 times)

FarmGirl

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Sequence diagram connectors don't copy
« on: October 04, 2014, 07:13:27 pm »
Is it possible to copy a section of a sequence diagram including connectors, to reuse elsewhere in the same diagram? Similarly, how do you copy a whole sequence diagram including the connectors, to create another one? Whenever I try, the connectors are missing and putting them in is an appalling timeconsuming process (any quick tips?). Thanks, (novice user).

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: Sequence diagram connectors don't copy
« Reply #1 on: October 11, 2014, 03:53:25 am »
To the first part: consider creating fragments and arranging these in an interaction overview diagram instead.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Sequence diagram connectors don't copy
« Reply #2 on: October 11, 2014, 07:54:47 am »
This is the 3rd thread starting with this issue. Can anyone from Sparx please comment?

q.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Sequence diagram connectors don't copy
« Reply #3 on: October 13, 2014, 12:17:22 pm »
Not possible to just copy a section of a sequence diagram, but you should be able to create a copy of the entire sequence diagram using the "Copy Diagram" and "Paste Diagram" menu commands in the Project Browser window as described on the following page:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/modeling_basics/duplicateadiagram.html

Note however that Lifelines and Objects on this diagram will always be duplicated into the target package as part of the copy action, regardless of whether you select Shallow, Deep or Smart copy.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Sequence diagram connectors don't copy
« Reply #4 on: October 13, 2014, 10:00:35 pm »
In my opinion the "correct" way to model this is

a) Model the section to be copied as a separate interaction (sequence diagram)
b) On the other diagram(s) re-use the interaction modelled in a) as an Interaction Occurance (shown by default as a rectangular area with the label ref, this can be represented as a Lifeline (Timeline) if desired by Right-click | Advanced | Sho0w as Timeline
c) Repeat b) as often as required

Double-clicking on the Interaction Occurrence (ref) will "drill down" to your re-used interaction
Models are great!
Correct models are even greater!

FarmGirl

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Sequence diagram connectors don't copy
« Reply #5 on: October 14, 2014, 11:31:07 pm »
Thanks! Unfortunately Phil's and Paul's elegant solutions don't work for me as I need to be able to show all the connectors and elements on the face of the SD (I'm modelling business processes). Will have to hope Sparx fixes what seems to be a very simple problem...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Sequence diagram connectors don't copy
« Reply #6 on: October 15, 2014, 12:39:57 am »
I guess it's not that simple since (as Aaron pointed out) the lifelines will be duplicated. So copying a part would lead to duplicate lifelines. It's probably non-trivial to insert a message fragment in-sito. I could think of a scripted solution, but even that would likely be quite tricky.

q.