Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: billiam on March 07, 2009, 09:12:18 PM

Title: Visio Connectors On the Fly
Post by: billiam on March 07, 2009, 09:12:18 PM
Hello,

I would like to figure out how to add connectors on the fly.  Visio's UML sequence diagram object lifeline shape can do it.  Basically, as you resize the shape, it keeps adding connectors.  How is this accomplished.  I need to figure out how it is done so that I can create my own shapes that have the same functionality.  Please help!!


Title: Re: Visio Connectors On the Fly
Post by: Paul Herber on March 08, 2009, 12:29:14 AM
These are connection points, no, they aren't created on the fly but they are made visible on the fly. I do the same with a similar shape in my SDL/UML shapes at:
http://www.sandrila.co.uk/visio-sdl/ (http://www.sandrila.co.uk/visio-sdl/)
You are quite welcome to download it and have a look at the shape (you will have to also run the add on), right-clicking on the Instance axis shape menu -> Add Connection Points will add a load of connection points, you can repeat this many times to get thousands of connection points. But they are hidden unless the instance is of sufficient length.

Title: Re: Visio Connectors On the Fly
Post by: aledlund on March 08, 2009, 02:40:03 PM
lars-erik,
Perhaps the attached code might help. It's material that is part of a demo-project on analyzing visio connections/paths.
al
Title: Re: Visio Connectors On the Fly
Post by: Lars-Erik on March 08, 2009, 03:16:23 PM
Lars-Erik ?
Title: Re: Visio Connectors On the Fly
Post by: aledlund on March 08, 2009, 05:44:37 PM
did I read your post incorrectly?

"A yes the database wizard, I was secretly hoping you used an other method. The template I'm making need a link between Excel and Visio, but the other direction (Visio to Excel). I cant seem to find a way to get this to work."

al

Title: Re: Visio Connectors On the Fly
Post by: wapperdude on March 08, 2009, 09:52:40 PM
Back to the original question about how these connections are added "on the fly".  If you open the shapesheet, you will see there are multiple geometry entries.  These entries are sequentially added to the overall shape based upon the height as it is stretched.  As Paul indicated, they're not added on the fly, but rather made visible.  In fact, only a limited number can be added, based upon the total number of geometry shapes defined.

Hope this helps.