Author Topic: Rotate Right ?  (Read 5203 times)

0 Members and 1 Guest are viewing this topic.

iankoe

  • Jr. Member
  • **
  • Posts: 18
Rotate Right ?
« on: November 07, 2008, 07:13:50 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1718
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Rotate Right ?
« Reply #1 on: November 07, 2008, 10:02:56 AM »
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

  • Jr. Member
  • **
  • Posts: 18
Re: Rotate Right ?
« Reply #2 on: November 07, 2008, 04:20:49 PM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3833
  • Ideas Visio-lized into solutions
Re: Rotate Right ?
« Reply #3 on: November 07, 2008, 07:59:01 PM »
Interesting.  The DOCMDs, as shown, are defined correctly, and, the 1494 does, indeed, do nothing.   :o
Visio 2019 Pro

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3833
  • Ideas Visio-lized into solutions
Re: Rotate Right ?
« Reply #4 on: November 07, 2008, 08:12:06 PM »
 ::)  Mystery solved.  The visCmdRotate90Clockwise is not a shapesheet supported function.   :P
Visio 2019 Pro

iankoe

  • Jr. Member
  • **
  • Posts: 18
Re: Rotate Right ?
« Reply #5 on: November 08, 2008, 06:58:25 AM »
Well.  Ugliness aside,

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

does work. :P

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1718
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Rotate Right ?
« Reply #6 on: November 17, 2008, 01:08:38 PM »
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