Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: Visisthebest on March 14, 2023, 11:52:08 AM

Title: How do I copy-paste a subshape immediately in to the same group shape?
Post by: Visisthebest on March 14, 2023, 11:52:08 AM
I have a subshape with particular behavior set up for within a group shape. This becomes messed up when dropped on to the page.

I want to copy-paste the subshape and drop it immediately in to the same group shape, I know how to drop a shape in to a group but this does not work with copy-paste the shape ends up on the page first each time which messes up the formulas.

How to drop a subshape on paste immmediately in to the same group shape? Thank you for sharing your insights!
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: Surrogate on March 14, 2023, 12:00:00 PM
Why don't you want to go inside the group?
(https://i.imgur.com/U6w1wet.png)
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: Visisthebest on March 14, 2023, 12:23:29 PM
Thank you Surrogate I did not know about that option!
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: Yacine on March 14, 2023, 01:34:00 PM
Even with Surrogates method, it happens to me that I break links.
Then I go with SETF/GetRef to rewrite The parent ID in formulas. Very error prone.
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: Visisthebest on March 14, 2023, 02:10:42 PM
Thank you Yacine yes I still get those annoying REF() 's in the formulas after paste in the group, fortunately combining Surrogate's and your suggestion works fine!
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: vojo on March 14, 2023, 05:53:33 PM
manual mode.

1) go to behaviors and select "add to group on drop" and "accept shape on drop"
2) select the shape or sub shape of interest
3) copy
4) drag over new group until the hash lines show up
5) when hash lines seen, release paste

copied shape is now part of new group.
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: Visisthebest on March 14, 2023, 06:11:44 PM
Thank you Vojo that is how I did it initially and it works for copying in to the group, but the problem is the formulas that break and suddenly have REF() statements in them.
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: LorenzoErickson12 on April 13, 2023, 02:45:58 AM
Quote from: Visisthebest on March 14, 2023, 11:52:08 AM
I have a subshape with particular behavior set up for within a group shape. This becomes messed up when dropped on to the page.

I want to copy-paste the subshape and drop it immediately in to the same group shape, I know how to drop a shape in to a group but this does not work with copy-paste the shape ends up on the page first each time which messes up the formulas.

How to drop a subshape on paste immmediately in to the same group shape? Thank you for sharing your insights!
To copy and paste a subshape into the same group shape and ensure that its particular behavior is preserved, you can follow these steps:

Select the subshape you want to copy.
Use the keyboard shortcut Ctrl+C (Windows) or Command+C (Mac) to copy the subshape.
Click on the group shape that you want to paste the subshape into to select it.
Use the keyboard shortcut Ctrl+V (Windows) or Command+V (Mac) to paste the subshape into the group shape.
By default, when you paste a copied shape, it will be placed in the center of the page. However, if you hold down the Shift key while pasting, the shape will be pasted in its original position. So, to ensure that the subshape is dropped immediately into the same group shape, hold down the Shift key while pasting.
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: wapperdude on April 13, 2023, 04:08:43 PM
As preliminary steps, from the Developer tab > behavior, confirm that:
1) group accepts shapes on drop
2) selected shape will join group on drop

Since this sounds like you're duplicating, then <Cntl>+D ought to work.

Ed.  <Cntl>+C & +V  do not preserve the references.
Title: Re: How do I copy-paste a subshape immediately in to the same group shape?
Post by: wapperdude on April 14, 2023, 05:22:28 AM
...and to have some fun...