archi icon indicating copy to clipboard operation
archi copied to clipboard

[feature proposal] Copy/paste of selected view elements directly to image

Open grmatthews opened this issue 11 years ago • 5 comments

Sometimes I want to share a portion of a view with someone via email to get their feedback, because sending them the entire view would be a distraction.

It would be great if you could copy/paste directly from Archi into Word or Outlook as an image.

I know you can Ctrl/Shift-C to copy the entire view to the clipboard as an image and then paste it. Perhaps this function could be modified so that if any elements are selected then only those selected elements are copied to the clipboard as an image?

grmatthews avatar Jun 04 '14 06:06 grmatthews

I gave this a shot, it's not that easy to implement. Need to construct a new Figure in memory with only selected child elements. Problems if some elements are selected that are child elements of non-selected figures.

Phillipus avatar Jul 24 '14 07:07 Phillipus

Hi Phillipus. Thanks for giving it a try.

Is there a link to the particular Java file(s) you might be able to send which handle rendering. I am happy to take a look to come up with options on how to solve it.

grmatthews avatar Jul 28 '14 23:07 grmatthews

Note for myself: this kind of feature my be helpful in some cases. Perhaps this could be done with jArchi?

jbsarrodie avatar Feb 05 '19 13:02 jbsarrodie

The problem is generating a Draw2D Figure with only the selected child elements that can be rendered as an Image. So not really possible with jArchi.

Phillipus avatar Feb 05 '19 13:02 Phillipus

The option added by the Copy As Image to Clipboard I think will cover most use cases. I would like to suggest a middle ground option for this issue though. Possibly, instead of trying to be "precise" and only export an image for the selected elements, maybe instead create an image cropped to the bounding box of the selected elements (plus some margin).

I think it may suffice for most of the use cases for when people want to copy only part of the view, and I think that it's really what people expect to happen. If I select an element that has a child, but I only select the element, I'd like the child to be visible in the image. Same for relationships that I haven't selected. Just cropping the image automatically takes care of that.

For my use case though, the Ctrl+Shift+C option is brilliant. Thank you.

pvginkel avatar Feb 02 '23 11:02 pvginkel