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

Rotate Right ?

Started by iankoe, November 07, 2008, 12:13:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iankoe

In a Shapesheet, I know I can Rotate Left with DOCMD(1056), but what about Rotate Right?  Is there a way to do this without the brute force method of 3 Rotate Lefts?

Visio Guy

Hi iankoe,

If we browse the Visio object model, we can find possible DOCMD ids in the VisUICmds enumeration. I found the following:

VisUICmds.visCmdObjectRotate90 = 1056
VisUICmds.visCmdRotate90Clockwise = 1494

That should get you rotating in both directions!
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

iankoe

You know I tried that.  1056 definitely does the rotate left, but 1494 seems to do nothing.   Is it me?  Have you seen it work?

Thanks for the quick reply

wapperdude

Interesting.  The DOCMDs, as shown, are defined correctly, and, the 1494 does, indeed, do nothing.   :o
Visio 2019 Pro

wapperdude

 ::)  Mystery solved.  The visCmdRotate90Clockwise is not a shapesheet supported function.   :P
Visio 2019 Pro

iankoe

Well.  Ugliness aside,


DOCMD(1056)+DOCMD(1056)+DOCMD(1056)


does work. :P

Visio Guy

Weeeeeeird. Another bit of black magic...off to the bug board I go...
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

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: 254 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1105KB.
Tokens: post-login.
Cache hits: 13: 0.00198s for 26,725 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]