2 September 2010

Network Diagrams: Rotating Text on a Line

Text on Line

You can draw line, then double click and add some text to the line.

visio-line-text-1.jpg

But what you really want is to have the text at right angles to the line so that get some meaning from it. Consider the following example where the interface names have been added to the lines for a physical / VLAN diagram.

visio-line-text-2.jpg

Rotate the Text

SO what we really want is to be able to rotate the text so that it is perpendicular to the joining lines.

visio-line-text-3.jpg

And now we have something much more appealing and relevant.

visio-line-text-4.jpg

When the text box isn’t the right size or the right angle

One problem with this technique is that Once you put a dot or full stop on the line that text automatically wraps around or that the text boox is not quite the right size for the text you want to put there. This diagram shows the text wrapping when a full stop is added:

visio-line-text-5.jpg

Using the Text Block Tool

Changing the font to a smaller size and using Arial Narrow is usually good enough but the best alternative is to use the Text Block tool. Select the line or object before you head to the menu, select the Text and click the drop arrow on the right of the button:

visio-line-text-6.jpg

which will then put resize bars on the object – like so:

visio-line-text-7.jpg

This text block tool not only allows you to resize the text width, but also to rotate it to non-standard angles. By grabbing the round green dot with your mouse, you can rotate the text box to any angle you want.

visio-line-text-8.jpg

And you can change the width of the text box by grabbing the green squares:

visio-line-text-9.jpg

There are some related tips to formatting the text background in this article which you might want to look at.

Suggestions on using this technique

I tend to use this a lot when drawing diagrams that need to capture the physical information such as switch port numbers and router/firewall interface names. The combination Layer 1/2 information is really useful for network diagrams.

Credit

Big thanks to Ray and Marko in the comments for the tip about the Text Block Tool which I didn’t know about. I have updated the post with this detail.

Please rate this post:

1 Star - It\\\'s Crud2 Stars - It\\\'s Tosh3 Stars - Something\\\'s missing4 Stars - Needs works5 Stars - Good Enough6 Stars - Good7 Stars - Excellent8 Stars - Brilliant9 Stars - Astonishing10 Stars - Awesomely Godlike? (1 votes, average: 8.00 out of 10)
Loading ... Loading ...

About Greg Ferro
Greg is a Network and Security Architect / Designer / Engineer working freelance in the UK and worked for Resellers, DotCom's, Large Corporate's and Service Providers across a variety of products & Vendors. He prefers to work for end users, believes in the life cycle, total cost of ownership and that near enough is often good enough. He likes talking about himself in the first person to feel "royal", even when hosting the Packet Pushers Podcast on Data Networking. More about Greg at http://etherealmind.com/who-am-i/ and you can follow him on Twitter.

Comments

  1. You can change the default size of the text field by using the text tool. Click and hold the text button on toolbar. You will get another sub-toolbar. Choose that and click on object you wish to modify. When you select the object, you will be able to modify the size of its embedded text object.

    It’s a shame one can’t attach pictures to comments – it would be easier to explain this with a single pic.

  2. Ray says:

    Wow Greg, after reading some of your other Visio tips (which were excellent by the way) I thought you knew every Visio trick going.

    What you need is the “Text Block Tool”. I’m not aware of a way to access it from the menus or context menu (right click) but in my installation you can find it by clicking the small down arrow next to the “A” (Text Tool) towards the right hand end of the Standard tool bar. You should see an A with an arrow around it labelled “Text Block Tool”. Select that.

    You can then select an object and the associated text will have it’s own green dotted box appear. This allows you to move, resize and orientate the text independently of the ‘parent’ object. I find this very useful to avoid the word-wrap issue you describe, making text appear horizontal on a slightly angled line and making text appear above/below/beside an object.

    It can also help with the problem you describe in Net­work Dia­grams: Labelling an VLAN/​IP Segment.

  3. Pete says:

    Hey Greg,

    Just wanted to say thanks for all the useful Visio tips here. I’ve been using Visio for years and living with a load of frustrations….. only to find out the solutions were there if only I’d RTFM. Anyway, reading all this has been very useful and will save me hours in future. Thanks!

Speak Your Mind

*