Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: rickscr on November 30, 2012, 04:01:27 PM

Title: Custom shape scale behavior
Post by: rickscr on November 30, 2012, 04:01:27 PM
I'm trying to create a custom master shape for a building.  I want to be able to re-size it, but have the angle of the roof stay the same.  Anyone know how to do this?
Title: Re: Custom shape scale behavior
Post by: vojo on November 30, 2012, 05:48:15 PM
two options

1)  Simple, lock perspective and scale via corners
2)  Complex, in the shape geometry, factor in the angle
     Something like
              Geometry1.X3 = Geometry1.X2+ 1/2*width*cos(angle)
              Geometry1.Y3 = Geometry1.Y2+ 1/2*width*sin(angle)
              Geometry1.X4 = Geometry1.X3+ 1/2*width*cos(angle)
              Geometry1.Y4 = Geometry1.Y3 - 1/2*width*sin(angle)
     Probably have to play with the formulas...but I think you get the idea (take previous point and add 1/2 width and factor in angle)
     If you want to protect these cells from any user action, use guard() on the formula
Title: Re: Custom shape scale behavior
Post by: rickscr on November 30, 2012, 08:39:42 PM
Option 2 it is, since I need the shape to scale in both directions.  I'm beginning to see why the shapesheet is so important.... :)

Thanks for your help!