News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Visio Connectors On the Fly

Started by billiam, March 07, 2009, 09:12:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billiam

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!!



Paul Herber

#1
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/
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.

Electronic and Electrical engineering, business and software stencils for Visio -

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

aledlund

lars-erik,
Perhaps the attached code might help. It's material that is part of a demo-project on analyzing visio connections/paths.
al

Lars-Erik


aledlund

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


wapperdude

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.
Visio 2019 Pro

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 239 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1123KB.
Tokens: post-login.
Cache hits: 13: 0.00178s for 26,715 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]