• Categories

  • Archives

  • Subscribe

  • Meta

Connection Point Directions & Types

Posted by Visio Guy on October 12th, 2006 3727 views

Read Full Article How many of you remember waaay back to Visio 2000, when you could manipulate the type and direction of connection points via nifty UI handles? Well, that functionality was removed from Visio, but I've created a free tool that will give it back to you! Using a custom master shape and Visual Basic for Applications code, you can quickly get your 2D connection points in order!

So those of you who have been around for awhile might remember those green arrow-handles. You could select a connection point and get something that looked like this:

Old Connection Point Direction Handles

Essentially, this allowed you to graphically manipulate the values of the cells: DirX/A, DirY/B and Type/C that live in Connection Point rows. If you have spent hours looking for this in Visio 2003, and thought you were crazy for imagining things, well, you're not. This is yet another Disappearing Feature, courtesy of our friends: The Lawyers. The rumor is that this feature was yanked because it infringed on another product's patent. Anyway, I've created a Visio Tool to help you relive the good old days. The downloadable .VSD file contains a special master shape and some Visual Basic for Applications code that lets you graphically manipulate your connections points. I tried to be cool, clever, nouveau, graphic-artsy, etc. and make the shapes 21st-century versions of the old green arrows. Hopefully you'll find them pleasing to look at. Here's what they look like:

New Connection Point Direction Handles

After you download the document, you can run the VBA code to set up your editing session. Just select some shapes and click the big button at the top of the page. You will get a connecton point shape dropped-on and linked-to every connection point for each shape you've selected.

You can then rotate the shapes to change the connection point's angle, and right-click to cange the connection point's type. Just like the old interface! When you're done, just delete the blue shapes, and your connection points will retain your changes.

As an example, we have a circle and a spike. The spike shape should attach to the circle at any of eight points, and be normal to the circle upon glueing. When we run the VBA code, we get connection-point shapes attached to the eight connection points on the circle, plus the one on the spike. You can then rotate the connection-point shapes, and right-click to change the type. Below, we see all of the shapes rotated correctly, and the spike's connection-point shape has been changed to "Outward" or "Attaches", which is type 1.

Connection Point Direction Example

Now, it's literally a snap (and glue) to attach spike shapes properly to the circle:

Connection Point Direction Finished Product

Note: If you see red on a connection point shape, that means that there was a custom formula in the connection point cell. Below, we see that the arrow is red. That is because the DirX/A and DirY/B cells have formulas that match the slope of the triangle.

Connection Point Errors

I figured you wouldn't want my tool to mess up any smart formulas that you worked so hard to create!

(Download: ConnectionPointConfiguration.zip)

Share this article!

These icons link to social bookmarking sites where readers can share and discover new web pages.

  • StumbleUpon
  • Digg
  • del.icio.us
  • Technorati
  • YahooMyWeb
  • Slashdot

Related Posts:

4 Responses to “Connection Point Directions & Types”

  1. Jerry Howe Says:

    The Connection Point tool is very helpful. I am, however, having problems when I add a number of connection points to a shape and then try to connect another shape (to which I have also added a connection point). It seems if I make my connecting shape smaller, it will snap and glue to the first shape. If I make the connecting shape slightly larger (to the size I want), it will not connect. I’ve tried changing the size of your circle and points and see none of the same problems I am experiencing.

    Any suggestions are appreciated.

  2. Visio Guy Says:

    Hi Jerry,

    When you glue one shape with connection points to another, it depends on where you grab the shape. Visio tries to find the connection point closest to the mouse cursor, and use that as the point that snaps to the other shape. Try dragging your shape from different points.

    - Chris

  3. David.P Says:

    Jerry,

    start a temporary line exactly at the point you want the other shape to snap to. Activate glueing and then drag the other shape over the end point of that temporary line.

    *SNAPP* it goes and your shape’s connection point is glued to your temporary line’s end. Then delete the line — and there you go!

    I only found out about this solution since I also could not manage to snap or glue connection points of different shapes *to each other* at all (in Visio 2003 that is).

    Enjoy,
    David.P

  4. Visio Guy » Blog Archive » When 2D Glue Breaks Says:

    […] the way, we’ve covered 2-dimensional glue in a previous article: Connection Point Directions and Types This post also provided tools for configuring 2D connection points. Have a […]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Tag Cloud

  • Recent Comments on Visio Guy

  • RSS The Latest from the Visio Guy Forum

  •