News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

How do I copy-paste a subshape immediately in to the same group shape?

Started by Visisthebest, March 14, 2023, 11:52:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visisthebest

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!
Visio 2021 Professional

Surrogate

Why don't you want to go inside the group?

Visisthebest

Visio 2021 Professional

Yacine

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.
Yacine

Visisthebest

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!
Visio 2021 Professional

vojo

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.

Visisthebest

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.
Visio 2021 Professional

LorenzoErickson12

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.

wapperdude

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.
Visio 2019 Pro

wapperdude

Visio 2019 Pro

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 314 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1178KB.
Tokens: post-login.
Cache hits: 13: 0.00154s for 26,764 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]