Example -- double-click to rotate shape 36 degrees

This is my first attempt to cause Visio to handle double-click on a shape.

I need to rotate the shape 36 degrees each time it's double-clicked.

Here's what I have right now:

  1. Enable developer tab in ribbon
  2. Select shape
  3. in developer tab, click "Show ShapeSheet"
  4. In ShapeSheet, enable "Events" box to show
  5. For "EventDblClick", enter the formula to handle double-clicks

Formula I'm trying:

=SETF(GetRef(Angle),MODULUS(GetVal(Angle)+36,360))

Result when I double-click:

"Shape protection, container, and/or layer properties prevent complete execution of this command."

However, I couldn't find any protection being applied to this shape.  Ideas or suggestions?  Pointers to existing solutions and walkthroughs welcome. 

My goal: Create a specific shape which rotates by 36 degrees on each double-click, and export it as a stencil.

December 12th, 2014 7:15am

I eventually discovered the problem.  It was a mistake of a someone new to this.  Here's the correct formula, which works quite well:

=SETF(GetRef(Angle),ANG360(GetVal(Angle)+RAD(36)))
In a nutshell, I was confused because the display in the datasheet showed the value in degrees, even though it appears to have required the value in radians.

Live and learn!

Free Windows Admin Tool Kit Click here and download it now
December 12th, 2014 8:28am

Hi Sir,

Thanks for sharing your experience here. It'll benefit for other communicators.

Have a good time.

Regards,

George Zhao
TechNet Community Support

December 15th, 2014 5:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics