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

Visio Paste in same location as original shape

Started by Visisthebest, September 05, 2023, 12:00:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visisthebest

I found a post on this subject:
http://visguy.com/vgforum/index.php?topic=1844.0

But I wonder if, rather than using the context menu to paste, if there is a way to get the shape pasted on the same place with CTRL+V (Paste shortcut).

Maybe something I can set with VBA/VB.NET? (so when the user uses CTRL+V, the behavior is paste in original shape's location).

CTRL+V (Paste shortcut) sometimes works fine pastes in place, but most often it pastes with an offset from the original shape's position.
Visio 2021 Professional

Surrogate

#1
Shape.Paste method have flags, which determines how shapes are translated during the paste operation.

Visisthebest

Thank you Surrogate I found those, but how to set this when a user performs the action via CTRL+V so there is no code running just default Visio paste functionality?
Visio 2021 Professional

Surrogate

#3
Tips for Copy/Paste in Visio 2010 (Including How to Copy a Page) (Visio Insights blog post)

OFFTOPIC




visCopyPasteNormal 0 Default value. Shapes are copied/pasted to the center of the active window.
visCopyPasteNoTranslate 1 Shapes are copied/pasted to their original coordinate locations.
visCopyPasteCenter 2 Copy shapes to the center of the page.

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: 242 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1056KB.
Tokens: post-login.
Cache hits: 13: 0.00187s for 26,731 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]