Author Topic: Add arrow to middle of connector?  (Read 48098 times)

0 Members and 1 Guest are viewing this topic.

clintdavis

  • Newbie
  • *
  • Posts: 2
Add arrow to middle of connector?
« on: July 02, 2010, 01:21:15 PM »
I have a complex diagram and in order to help follow the paths I would like to have an arrow in the middle of the connector as well as the end to indicate direction. If I can have multiple arrows along the path that would be great as well.

I'm using Visio 2010 now but if there is a solution for any version I am open to it.

Thanks,

Clint

Jumpy

  • Hero Member
  • *****
  • Posts: 1061
Re: Add arrow to middle of connector?
« Reply #1 on: July 03, 2010, 05:48:29 AM »
What kind of connectors are you using? Only straight arrows or the automatic connector that goes right angled around other shapes?
Because in the last case a second arrowhead in the middle of the path won't look nice, because the middle of the path does not mean the middle of the segment that is in the middle of the path. I had problems with that, too and solved it with a shape, that is only an arrowhead. When I drag it from a stencil and unto a connector line, it will place itself in the middle of the path segment, with VBA.

Worked fine for me, but I can use it  only, when the drawing is in its final stages, because when a connector is adjusted, the new arrowhead won't follow it, because it is still a different shape.

When you think, that could help you I can post the VBA code on tuesday

Yacine

  • Hero Member
  • *****
  • Posts: 2715
Re: Add arrow to middle of connector?
« Reply #2 on: July 03, 2010, 10:17:05 AM »
You may want to use line patterns.
Cheers
Yacine
Yacine

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1721
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Add arrow to middle of connector?
« Reply #3 on: July 03, 2010, 05:49:04 PM »
More examples of what can be done with custom line patterns in Visio, and links to further resources:

Release the Power of Visio Custom Line Patterns
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Yacine

  • Hero Member
  • *****
  • Posts: 2715
Re: Add arrow to middle of connector?
« Reply #4 on: July 04, 2010, 03:09:03 PM »
Chris,
what settings would you recommend to put exactly one arrow head at the middle of a line/connector with line patterns.
Creating a group could be a possibility, but would be hard to implement for connectors.
« Last Edit: July 06, 2010, 03:05:55 PM by Yacine »
Yacine

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Add arrow to middle of connector?
« Reply #5 on: July 05, 2010, 01:22:49 AM »
I thought someone mentioned about group.
Here is a kind of his idea.
A connector is a group that has arrows.
Unfortunately, you need to run macro,"testArrows", if number of segments changed.
The connectors need to be rectangle conectors.
« Last Edit: July 05, 2010, 01:25:25 AM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Add arrow to middle of connector?
« Reply #6 on: July 05, 2010, 08:04:26 AM »
Enhancement.

Added right click menu "Update Arrows" to each connector shape.
Now you can update arrows on a connector, when you changed the number of segments.
Number of maximum segment is increased from 6 to 9.
« Last Edit: July 05, 2010, 08:07:56 AM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1721
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Add arrow to middle of connector?
« Reply #7 on: July 05, 2010, 08:10:55 AM »
I think putting just one arrowhead directly in the middle of the connector is only possible in Visio 2010 (without code, that is)

Visio 2010 has some new ways to access geometry sections arbitrarily, and locate stuff certain percentages along a path.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Add arrow to middle of connector?
« Reply #8 on: July 06, 2010, 07:59:48 AM »
Made an example by the best suggestion of Visio Guy, though for only Visio 2010.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

clintdavis

  • Newbie
  • *
  • Posts: 2
Re: Add arrow to middle of connector?
« Reply #9 on: July 06, 2010, 08:23:09 AM »
Thanks for all the help guys! Line patterns are exactly what I was looking for. I knew I couldn't be the only one who had this problem. Thanks to Yacine for giving me the pattern. I modified it to make the arrows more spaced out but it works perfectly!

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1721
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Add arrow to middle of connector?
« Reply #10 on: July 06, 2010, 10:10:27 AM »
Nice job, June, very cool!
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Yacine

  • Hero Member
  • *****
  • Posts: 2715
Re: Add arrow to middle of connector?
« Reply #11 on: July 07, 2010, 01:43:27 AM »
thougth about that group idea... here's a first sketch.
The laborious part remains to calculate how the grouped connectors bend first, so to orient the arrow accordingly.
Yacine

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Add arrow to middle of connector?
« Reply #12 on: July 08, 2010, 08:00:13 AM »
My sample has a problem, when the corners of connector are rounded with menu Rounding.
This is because the PATHSEGMENT function counts a corner as 1 segment,
but on the other hand the number of rows of Geometry section does not increase by rounding.
Here is a modified example that re-calculates geometry's rows from the the result of PATHSEGMENT function.
Now you can round the corner of connectors.
And more, shape sheet formulas are simplified using INDEX function.
« Last Edit: July 08, 2010, 06:17:43 PM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Add arrow to middle of connector?
« Reply #13 on: July 08, 2010, 06:03:35 PM »
Above drawing file was replaced after a modification.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Add arrow to middle of connector?
« Reply #14 on: July 09, 2010, 03:29:19 AM »
Here is the most interesting example that uses POINTALONGPATH function at Visio Insights.
"The Point Along Path ShapeSheet Functions in Visio 2010" at
http://blogs.msdn.com/b/visio/archive/2010/01/15/the-point-along-path-shapesheet-functions-in-visio-2010.aspx
Please, visit there and check the example drawing.
« Last Edit: July 09, 2010, 06:07:37 AM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/