Visio Guy

Visio Guy Website & General Stuff => User-submitted Stuff => Topic started by: wapperdude on September 08, 2015, 12:29:26 AM

Title: Shape Alignment: Face to Face and Diagonal Corners
Post by: wapperdude on September 08, 2015, 12:29:26 AM
Visio provides basic alignment options which nicely align shapes along an edge or about the shape centers.  However, the alignment tool doesn't do butt joints, that is, facing edge to facing edge.  Nor, does it do corner to corner.  Paul Herber and I collaborated on a new utility which has been added to his Super Utilities.  This new utility does these missing alignment options, plus, allows the user to glue the shapes to each other if desired.

Access of this utility is thru menu bar > Super Utilities > Shape > Align and Glue.  This brings up a non-modal form which presents the various alignment options plus gluing. 

At least two shapes must be selected.  For face to face alignment, the shapes must be orthogonal, i.e., -90deg, 0deg, +90deg.  For diagonal alignment, this restriction is removed.  Alignment of the shapes proceeds in the order of their selection.  The 1st selected shape is the base shape.  The remaining shapes align around this shape according to the option selected.  The diagonals only radiate to the right, either upwards or downwards.  Gluing is only along the alignment direction which allows the shapes to slide along the alignment edge.

The attached file is a composite of all the various alignments, where Sheet.1 was always the base shape. 

My thanks to Paul Herber for his help on this project.

Enjoy!
Wapperdude
Title: Re: Shape Alignment: Face to Face and Diagonal Corners
Post by: Paul Herber on September 08, 2015, 09:59:18 AM
Mr Wapperdude is being extremely modest. It was his idea, he did all the designing, coding and debugging in VBA, created all the rather complicated formulae involved. All I did was to take Wapperdude's code and translate it into Lazarus (Delphi) Free Pascal.
Title: Re: Shape Alignment: Face to Face and Diagonal Corners
Post by: wapperdude on August 20, 2019, 02:02:03 PM
This has been updated:  http://visguy.com/vgforum/index.php?topic=8870.0 (http://visguy.com/vgforum/index.php?topic=8870.0)
Title: Re: Shape Alignment: Face to Face and Diagonal Corners
Post by: wapperdude on December 28, 2023, 11:01:11 PM
There is an updated version here:  http://visguy.com/vgforum/index.php?topic=8870.msg38936#msg38936 (http://visguy.com/vgforum/index.php?topic=8870.msg38936#msg38936)