archi icon indicating copy to clipboard operation
archi copied to clipboard

Copy behaviour

Open HansBosma opened this issue 3 years ago • 5 comments

When I copy and paste an object element from one view to another, I do not get the associated connections in the new view.

While the manual says: "If an element is pasted in a View from the same model where the element does not already exist then a new diagram element is created for the View and the original model element is referenced. This is equivalent to dragging the element from the Model Tree into the View. Any connections are also referenced."

So, what I would like is that the connections are also drawn, the same as when selecting the element in the tree and dragging it into the view.

The manual and the actual tool behaviour seems different to me.

HansBosma avatar Mar 11 '22 08:03 HansBosma

When the manual says, "Any connections are also referenced" it means that if you copy and paste elements A and B which have a connection between them, then the connection is also copied.

If you only copy and paste one element that is all that is copied. So the behaviour is as expected.

Phillipus avatar Mar 11 '22 08:03 Phillipus

The sentence "This is equivalent to dragging the element from the Model Tree into the View" is specific what I am interested in. In a lot of cases I copy a diagram element into another view. What I want while doing that is that all the connections that are available to other diagram elements in that view are also drawn. I.e. indeed the same behaviour when dragging the model element into the view. Maybe in an extra 'Paste special' option: copying a diagram element with drawing available connections'?

HansBosma avatar Mar 11 '22 09:03 HansBosma

What I want while doing that is that all the connections that are available to other diagram elements in that view are also drawn.

In that case, dragging and dropping from the tree will fulfil that requirement.

Phillipus avatar Mar 11 '22 09:03 Phillipus

I know. But in that case first I have to lookup that model element and then drag it into the view. While doing that I lose the 'view' selection in the Model tree.

Paste with connections is a lot faster...

HansBosma avatar Mar 11 '22 09:03 HansBosma

As an alternatieve, more in line with your suggestion.

Would be nice to be able to CTRL-C an object in the object tree, and then paste it onto a diagram. With the same behaviour as dragging it onto the diagram. So in that way you can do that repeatedly in diagrams.

HansBosma avatar Mar 11 '22 12:03 HansBosma