Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: Michelle on August 06, 2008, 08:25:52 AM

Title: Changing rotation with shape data
Post by: Michelle on August 06, 2008, 08:25:52 AM
I am working with a shape that (I hope) will automatically create itself depending on the user's choices in the Shape Data box.  I am having trouble getting a sub-shape to rotate based on one of these choices. 

I'd like my sub shape to change from 0 to 90 degrees based on a choice made.  I can get it to sit at 0deg or 90deg, but not to rotate per the option.  I tried putting "IF(Sheet.5!Prop.PanelDirection=("B"),90 deg,0 deg)" in the Angle cell for the sub shape's shape sheet... 

I wanted to attach a drawing, but I couldn't get it below 250KB  :'(
Any ideas what I am doing wrong?

TIA,
Michelle
Title: Re: Changing rotation with shape data
Post by: vojo on August 06, 2008, 09:39:10 AM
angle = guard(if(strsame(variable, "B"), 90 deg, 0 deg))
Title: Re: Changing rotation with shape data
Post by: Michelle on August 06, 2008, 09:45:38 AM
Thank you, Thank you, Thank you   :)