Author Topic: Changing rotation with shape data  (Read 3186 times)

0 Members and 1 Guest are viewing this topic.

Michelle

  • Full Member
  • ***
  • Posts: 151
Changing rotation with shape data
« 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

vojo

  • Hero Member
  • *****
  • Posts: 1523
Re: Changing rotation with shape data
« Reply #1 on: August 06, 2008, 09:39:10 AM »
angle = guard(if(strsame(variable, "B"), 90 deg, 0 deg))

Michelle

  • Full Member
  • ***
  • Posts: 151
Re: Changing rotation with shape data
« Reply #2 on: August 06, 2008, 09:45:38 AM »
Thank you, Thank you, Thank you   :)