Author Topic: Dynamic connector with multiple independent labels  (Read 42204 times)

0 Members and 1 Guest are viewing this topic.

mswally

  • Newbie
  • *
  • Posts: 1
Re: Dynamic connector with multiple independent labels
« Reply #15 on: August 08, 2013, 05:00:26 PM »
I've been looking for a very very long time now to find a good example of a connector with labels at each end, mainly to connect 2 network devices and specify the interfaces at each end.

This topic has actually been my best luck so far and it gave me a few other ideas. Instead of trying to add multiple labels on a single connector I thought I'd add several smaller connectors on top of each other. So now I just have to take care of the positioning of the connectors instead of adding the labels which seems a bit easier. I've attache the smaller labels on top of the master connecter using connection points but maybe there's an easier more dynamic way of doing this.

It's still not perfect, specially for curved lines, but it works for me. Perhaps someone could optimize it, perhaps giving the distance as a parameter and use data fields as input.

The example VSD is added (visio 2010)


kaage

  • Newbie
  • *
  • Posts: 1
Re: Dynamic connector with multiple independent labels
« Reply #16 on: August 28, 2013, 06:48:02 AM »
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAWWWsome!!!!!!!!!!!!!!!!!!!!!! :) :) :D :D :D

Tried to achieve this for 4 years with collegues!

wmarler

  • Newbie
  • *
  • Posts: 1
Re: Dynamic connector with multiple independent labels
« Reply #17 on: September 25, 2013, 10:29:29 AM »
Is it possible to tie shape data into these connectors?

So for example, in mswally's attachment the connectors have the shapedata "textleft" and "textright", but these don't tie into the labels "LEFT SIDE" and "RIGHT SIDE" respectively.

robert.cowham

  • Jr. Member
  • **
  • Posts: 23
    • Square Mile Systems
Re: Dynamic connector with multiple independent labels
« Reply #18 on: October 09, 2013, 04:25:08 AM »
I have used some information gleaned from Graham's books to create a connector where the port labels are driven from shape data and can also be turned on or off, dragged and respositioned manually if desired etc.

Check out http://www.squaremilesystems.com/products/sms-visio-utils/network-connector/

It is working pretty well.

Behind the scenes it uses the built in magic functions _UCON_BEGTYP and _UCON_ENDTYP to decide if a connector is going from left/righ/top/bottom and to the same. It then repositions the port labels automatically.

tommy1234

  • Newbie
  • *
  • Posts: 1
Re: Dynamic connector with multiple independent labels
« Reply #19 on: October 25, 2013, 09:10:32 AM »
I downloaded the connector Yacine posted.  How do I change it to a straight line style? Sorry if this is obvious, I'm quite new to Visio and it is not intuitive for me.

ondrugs

  • Newbie
  • *
  • Posts: 2
Re: Dynamic connector with multiple independent labels
« Reply #20 on: January 08, 2014, 06:24:38 AM »
Right click - Straight Connector.

ondrugs

  • Newbie
  • *
  • Posts: 2
Re: Dynamic connector with multiple independent labels
« Reply #21 on: January 08, 2014, 06:26:24 AM »
MSWally - thanks for the upload. it's exactly what I was trying to [unsuccessfully] do!

one thing i can't figure out, is how to save the connector as a stencil. i tried "save as", but all it ends up doing when i load the stencil, is be a standard connector (i.e - the labels disappear).

any thoughts?
« Last Edit: January 08, 2014, 06:31:04 AM by ondrugs »

duzhev

  • Newbie
  • *
  • Posts: 1
Re: Dynamic connector with multiple independent labels
« Reply #22 on: August 11, 2014, 03:55:27 AM »
I installed a SMS Visio Utils (Visio 2013), but I can't find network connector.
As to me to start using network connector from http://www.squaremilesystems.com/products/sms-visio-utils/network-connector/.
What do I do not so?

glenn59

  • Newbie
  • *
  • Posts: 2
Re: Dynamic connector with multiple independent labels
« Reply #23 on: January 04, 2016, 04:54:24 PM »
Is it possible to add a third label near the center? And how?

Yacine

  • Hero Member
  • *****
  • Posts: 2708
Re: Dynamic connector with multiple independent labels
« Reply #24 on: January 05, 2016, 01:30:59 PM »
Hi Glenn,
in the examples posted earlier, there is already a 3rd label. Where is the problem?
Yacine

glenn59

  • Newbie
  • *
  • Posts: 2
Re: Dynamic connector with multiple independent labels
« Reply #25 on: February 04, 2016, 03:43:23 PM »
Sorry Yacine.. I saw the third label on the curved connector only, not realizing it could be changed to a right angle as another poster mentioned. Now, I just need to change the fill to white and text to black. This could be a fantastic solution for me! Thanks so much!

netwiz

  • Newbie
  • *
  • Posts: 6
Re: Dynamic connector with multiple independent labels
« Reply #26 on: April 14, 2016, 08:56:28 AM »
Hi Viso people!

I'm trying to create two connectors with three labels one as a curve and one as an arc, using the examples provided in this thread. Ultimately these will be used to help documenting data flows between systems, linking to a spreadsheet.....

I'm almost there!

The curve connector is close, all I need to do is get the centre label to be restricted to stay on the curve line

The Arc connector also needs to be restricted to the line and I cannot get the label to sit on top of (forward) of the line.

Would greatly appreciate any assistance!

See the attached file.... 

vojo

  • Hero Member
  • *****
  • Posts: 1517
Re: Dynamic connector with multiple independent labels
« Reply #27 on: April 14, 2016, 10:25:11 AM »
I have always had problems with the UI tools for arcs...so I made arcs using
parametric inputs (type values to define "curviness")

You may be able to use these to define reference points for your text box
(since the parameters are crisply defined...maybe some sequence of formulas can get you what you want....maybe like x = width * 0.5   y = height + user.arcness)

Yacine

  • Hero Member
  • *****
  • Posts: 2708
Re: Dynamic connector with multiple independent labels
« Reply #28 on: April 14, 2016, 10:58:48 AM »
Hi Netwiz,
I recalled having seen something similar in the forum ... and Google is your friend: "NEARESTPOINTONPATH site:visguy.com"
--> : http://visguy.com/vgforum/index.php?topic=6279.0
Check the attachment of reply #7 by Nikolay

Regards,
Y.
Yacine

netwiz

  • Newbie
  • *
  • Posts: 6
Re: Dynamic connector with multiple independent labels
« Reply #29 on: April 18, 2016, 07:15:54 AM »
Thanks for the pointers guys!

Will investigate......