Book a Demo

Author Topic: How to drag object to sequence diagram as link?  (Read 3710 times)

Wolfman

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to drag object to sequence diagram as link?
« on: May 06, 2014, 12:18:50 am »
Using EA 10.0.1004.
When I drag an object from a different package into a sequence diagram, an instance element is always created. I never get the Paste Element dialog box as I do when dragging into other types of diagrams, not even when I hold down Ctrl. Changing the value of Auto Instance in Options-Diagrams-Behaviour has no effect. I think this behaviour was introduced in one of the latest upgrades.

What should I do to make it possible to drag an object from another package into a sequence diagram as a link?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to drag object to sequence diagram as link
« Reply #1 on: May 06, 2014, 03:13:43 am »
It does not make sense. So it's not possible. A lifeline is only valid in the context of a single SD. Therefore SDs should be placed in an Interaction element along with their lifelines.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to drag object to sequence diagram as link
« Reply #2 on: May 06, 2014, 08:47:43 am »
I think later versions of v10 allow it (even though it's a bad idea)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to drag object to sequence diagram as link
« Reply #3 on: May 06, 2014, 03:58:34 pm »
It is also possible in 10.0.1004, it just a bit harder.
Here's what you need to do:

- Open a class diagram
- Ctrl-Drag a class onto the diagram
- Choose link and check both options below "Options" button.
- Go back to the sequence diagram and simply drag the element onto the diagram. It should now create a link rather then an instance.

Geert
« Last Edit: May 06, 2014, 04:00:17 pm by Geert.Bellekens »

Wolfman

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to drag object to sequence diagram as link
« Reply #4 on: May 06, 2014, 05:34:36 pm »
Thanks. I see all of your points but in this particular case it is what I wanted.

@Geert: Thank you very much for the instructions. Good that it is indeed possible.