Gluing to the center of line

Started by JleruOHeP, June 01, 2012, 07:21:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JleruOHeP

How can I make following type of glue?
I have dinamic connector (which can have many angles) and I want to glue another line to it. But that line must be glued exactly to the center of the connector - even if user changes that connector to straight line or adds few extra angles.

Jumpy

Graham Wideman mentioned in his book, that Visio trys to maintain the relative position of a ConnectionPoint on a dynamic connector. So you could draw a straight dynamic connector. Add a Connection Point to the middle. See if the point stays stable, after bending the connector arround.

Paul Herber

It does seem to, that's a nice trick!
Electronic and Electrical engineering, business and software stencils for Visio -

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

JleruOHeP

Yes, it works great, but the problem is that I cannot rule, when to add this connection - sometimes I have to add it when dynamic connector already heve few sections...

JleruOHeP

Found another tricky solution.
You can glue to Controls.TextPosition of the dinamic connector. It holds middle of the line until user moves text away from the line...
But what to do in that case still dont know...