Author Topic: Shape Alignment: Face to Face and Diagonal Corners  (Read 2651 times)

0 Members and 1 Guest are viewing this topic.

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3645
  • Ideas Visio-lized into solutions
Shape Alignment: Face to Face and Diagonal Corners
« on: September 07, 2015, 07:29:26 PM »
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
« Last Edit: September 07, 2015, 07:59:44 PM by wapperdude »
Visio 2019 Pro

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2809
    • Paul Herber's website
Re: Shape Alignment: Face to Face and Diagonal Corners
« Reply #1 on: September 08, 2015, 04: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.
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3645
  • Ideas Visio-lized into solutions
Re: Shape Alignment: Face to Face and Diagonal Corners
« Reply #2 on: August 20, 2019, 09:02:03 AM »
Visio 2019 Pro