Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add 2nd label to Connector

Status
Not open for further replies.

markh1289

Technical User
Dec 12, 2008
5
AU
You know how if you join 2 shapes with Connector tool and on the connector line if you select it & press F2 you can add text associated with the Connector tool shape?

How can I add a 2nd one of these text boxes to this Connector line. This is so I can label both ends of the connector line. I don't really want to create a text box and group it to the Connector line because this has different (& not desired) behaviour to the text which is part of the Connector line.

Regards, MH
 
The basic philosphy for Visio is one text block per shape. If a shape requires independant text blocks, like one at either end of a line, then you will have to group the shapes. Of course, one you add a new text block, you also add a new text transform section and you can set the transform section to be dependant on the groups end points. Move the end of the line and the text block should maintain the same relative position to it.



John... Visio MVP - Visio.MVPs.org
 
Okay, a little more detail.

Create a text block and group it with the dynamic connector.
Select the dynamic connector within the group and use Format --> Special.. from the menu. At the top of the dialog is an Id #, remember it, that will be the shapesheet number.
Open the Text Block Shapesheet. Delete the Geometry section.
In the Shape Transform Section, set the Width to Guard(TextWidth(TheText)) and the Height to a constant value so it no longer relies on the height of the grouped shape.
Set the PinX and PinY to Sheet.x!BeginX and Sheet.x!Begin Y where "x" is he shape sheet number of the Dynamic connector. (You can also use EndX and EndY). You may want to add a constant to adjust the offset.


John... Visio MVP - Visio.MVPs.org
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top