Book a Demo

Author Topic: Element location of element when copied to diagram  (Read 7914 times)

Stephan Dankers - work

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Element location of element when copied to diagram
« on: September 16, 2015, 11:18:57 pm »
Hi,

is there any logic or rule for the location, when I copy an element in a diagram (e.g. via Ctrl-C) and paste the same element into a different diagram via (e.g. via Ctrl-V)?

It seems EA is placing it randomly somewhere on the new diagram. Especially if you have a large diagram and zoomed in, this can be very annoying. You need to scroll or zoom out to find the pasted element.

It would nice to have a dedicated location for it (e.g. top left).
Is there a way to do it?

Thanks and regards
Stephan Dankers

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Element location of element when copied to dia
« Reply #1 on: September 16, 2015, 11:36:22 pm »
Hi Stephan,

EA places the pasted element in the same location it had in the old diagram (with some small offset). Zoom and pan are not taken into consideration, so if you're in different pan/zoom in the two diagrams, you often find the pasted element is outside the visible part of the diagram.

I am not aware of any settings or options that affect this.

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Element location of element when copied to dia
« Reply #2 on: September 16, 2015, 11:38:36 pm »
Stephan,

It's not random. The copied element gets the same location as the original element.
Working with large diagrams like this is indeed a pain.
(my solution -> don't work with large diagrams ;))

What you can do is instead of copy/past you first select it in the project browser (ALT-G) and then drag it from the project browser onto your new diagram.
That is of course less obvious when you want to copy many elements.

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Element location of element when copied to dia
« Reply #3 on: September 16, 2015, 11:50:44 pm »
You should also note that if you've moved the element in the original diagram and haven't saved it, the element will be placed in the last saved location, not the current one, in the new diagram.

So save the original diagram before you copy things out of it.

/U
My theories are always correct, just apply them to the right reality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Element location of element when copied to dia
« Reply #4 on: September 17, 2015, 08:18:27 am »
The other thing you can do is right click and select paste. In that situation EA has a bit more information about where you want to paste and places the element(s) relative to the right click location.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element location of element when copied to dia
« Reply #5 on: September 17, 2015, 09:49:52 am »
Quote
The other thing you can do is right click and select paste. In that situation EA has a bit more information about where you want to paste and places the element(s) relative to the right click location.
Now THAT's good to know!  Thanks Simon!

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element location of element when copied to dia
« Reply #6 on: September 17, 2015, 06:15:51 pm »
Quote
Now THAT's good to know!  Thanks Simon!

Paolo
What's not so good is that the keyboard shortcut doesn't work the same way as the menu item.

I view this as a bug.  >:( What do others think?
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element location of element when copied to dia
« Reply #7 on: September 17, 2015, 06:28:07 pm »
If so: EAUI. It won't be fixed anyway.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Element location of element when copied to dia
« Reply #8 on: September 17, 2015, 08:55:03 pm »
Quote
Quote
Now THAT's good to know!  Thanks Simon!

Paolo
What's not so good is that the keyboard shortcut doesn't work the same way as the menu item.

I view this as a bug.  >:( What do others think?
Paolo

I don't actually. Pasting works differently with keyboard and mouse in Word too. The difference is that there's no cursor in a diagram.

With text editors (I mean in general now, ie Word, Notepad etc) there are two cursors involved, the text cursor and the mouse cursor. So when you just press Ctrl-V the text is pasted into the current location of the text cursor. When you right-click and select paste the mouse cursor location is used.

However, there is no "diagram cursor". So the choice that's been made is to copy the location from the old diagram on Ctrl-V, rather than use the mouse cursor location.

There are other options: always paste into a default location, or disallow Ctrl-V altogether because it can't work as it does in Word.

I'm fine with the choice that's been made, you and others may not be, but I wouldn't consider it a bug.


/Uffe
My theories are always correct, just apply them to the right reality.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element location of element when copied to dia
« Reply #9 on: September 18, 2015, 09:39:02 am »
Quote
Quote
Quote
Now THAT's good to know!  Thanks Simon!

Paolo
What's not so good is that the keyboard shortcut doesn't work the same way as the menu item.

I view this as a bug.  >:( What do others think?
Paolo

I don't actually. Pasting works differently with keyboard and mouse in Word too. The difference is that there's no cursor in a diagram.

With text editors (I mean in general now, ie Word, Notepad etc) there are two cursors involved, the text cursor and the mouse cursor. So when you just press Ctrl-V the text is pasted into the current location of the text cursor. When you right-click and select paste the mouse cursor location is used.

However, there is no "diagram cursor". So the choice that's been made is to copy the location from the old diagram on Ctrl-V, rather than use the mouse cursor location.

There are other options: always paste into a default location, or disallow Ctrl-V altogether because it can't work as it does in Word.

I'm fine with the choice that's been made, you and others may not be, but I wouldn't consider it a bug.


/Uffe
I was in two minds about the functionality.  I finally took the view that if the right-click provides a "diagram cursor" - which I would argue it does - then the last mouse click (whether left, right or middle) since I performed the copy/cut should constitute the "cursor".  You don't have to hit the keyboard shortcut until you've clicked in the right place..  In fact, to extend your analogy further, you only press paste when you've located where you want to place the contents...

As someone (not a million miles from here), once said...
Concistency, konsistency, consistensy! TMUffe - after Paolo  ;D

But as I said, I was in two minds.  I'm not suggesting it's easy to implement, just to get the design mind working properly.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Element location of element when copied to dia
« Reply #10 on: September 18, 2015, 10:18:27 am »
Quote
which I would argue it does - then the last mouse click (whether left, right or middle) since I performed the copy/cut should constitute the "cursor".
Obviously this comes down to your opinion. The problem with that analogy is that the cursor is not visible. Using that behavior may often result in a paste occurring where the user attention is, but when it went wrong I think it would be more confusing than the current behavior.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element location of element when copied to dia
« Reply #11 on: September 18, 2015, 02:40:46 pm »
Quote
Quote
which I would argue it does - then the last mouse click (whether left, right or middle) since I performed the copy/cut should constitute the "cursor".
Obviously this comes down to your opinion.
Indeed.  I'm also using this to explore my own thought processes and arguments.
Quote
The problem with that analogy is that the cursor is not visible. Using that behaviour may often result in a paste occurring where the user attention is, but when it went wrong I think it would be more confusing than the current behaviour.
Technically, the cursor isn't visible in the current behaviour.  And even when I paste with a cursor (line in an editor), I generally want to paste where my attention is but the cursor hasn't moved there so it doesn't paste where I'm expecting it.

I think if the functionality was actually implemented and Roy did his usual job of very clearly describing the behaviour it would work out better than currently losing stuff off-page.

I deal with real (but often confused) users who are NOT Sparx experts.  I submit that the existing functionality is more confusing than "Attention based pasting"TM.  ;)  My Opinion, of course - but with some objective evidence.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Element location of element when copied to dia
« Reply #12 on: September 24, 2015, 09:16:13 am »
Quote
Obviously this comes down to your opinion. The problem with that analogy is that the cursor is not visible. Using that behavior may often result in a paste occurring where the user attention is, but when it went wrong I think it would be more confusing than the current behavior.
My opinion is that if the Edit menu is used to paste the paste should occur within the viewport (i.e. the part of the window currently visible).
I have pasted from large diagrams (e.g. data models generated and laid out by EA) to a single A4 diagarm to discover the entity is multiple A3 pages away.
« Last Edit: September 24, 2015, 09:27:16 am by skiwi »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element location of element when copied to dia
« Reply #13 on: September 24, 2015, 10:07:07 am »
Quote
My opinion is that if the Edit menu is used to paste the paste should occur within the viewport (i.e. the part of the window currently visible).
I have pasted from large diagrams (e.g. data models generated and laid out by EA) to a single A4 diagarm to discover the entity is multiple A3 pages away.
+10 - this happens often when you have "comprehensive diagrams" (in the real world).
I can cope with it.  It VERY annoying, but at least I understand what's happening.  My users, on the other hand - who aren't inclined to model in the first place, are VERY confused...

This is an example of the Agile Manifesto's "Prefer working program to documentation".  It doesn't matter how much documentation you provide to something the doesn't "Work", it still doesn't work...

Paolo
« Last Edit: September 24, 2015, 10:08:11 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!