Tuesday, March 16, 2010

Network Diagrams: Rotating Text on a Line

October 1, 2009 by Greg Ferro · 5 Comments 

This Post is Part of a Series — click for list on Network Diagrams»

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 mean­ing from it. Consider the fol­low­ing example where the inter­face names have been added to the lines for a phys­ical /​ 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 per­pen­dic­u­lar to the join­ing lines.

visio-line-text-3.jpg

And now we have some­thing much more appeal­ing and rel­ev­ant.

visio-line-text-4.jpg

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

One prob­lem with this tech­nique is that Once you put a dot or full stop on the line that text auto­mat­ic­ally wraps around or that the text boox is not quite the right size for the text you want to put there. This dia­gram shows the text wrap­ping when a full stop is added:

visio-line-text-5.jpg

Using the Text Block Tool

Changing the font to a smal­ler size and using Arial Narrow is usu­ally good enough but the best altern­at­ive 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 res­ize bars on the object — like so:

visio-line-text-7.jpg

This text block tool not only allows you to res­ize 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 format­ting the text back­ground in this art­icle which you might want to look at.

Suggestions on using this technique

I tend to use this a lot when draw­ing dia­grams that need to cap­ture the phys­ical inform­a­tion such as switch port num­bers and router/​firewall inter­face names. The com­bin­a­tion Layer 12 inform­a­tion is really use­ful for net­work diagrams.

Credit

Big thanks to Ray and Marko in the com­ments 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:

  Why Rate Posts?
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 ...

Comments

5 Responses to “Network Diagrams: Rotating Text on a Line”
  1. You can change the default size of the text field by using the text tool. Click and hold the text but­ton on tool­bar. 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 embed­ded text object.

    It’s a shame one can’t attach pic­tures to com­ments — it would be easier to explain this with a single pic.

  2. Ray says:

    Wow Greg, after read­ing some of your other Visio tips (which were excel­lent 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 con­text menu (right click) but in my install­a­tion you can find it by click­ing 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 asso­ci­ated text will have it’s own green dot­ted box appear. This allows you to move, res­ize and ori­ent­ate the text inde­pend­ently of the ‘par­ent’ object. I find this very use­ful to avoid the word-​​wrap issue you describe, mak­ing text appear hori­zontal on a slightly angled line and mak­ing text appear above/​below/​beside an object.

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

    • Greg Ferro says:

      Excellent, found it and used it. Thanks Ray.

      Hey, you can’t know everything and this blog is one way of ask­ing for help. Will update in the next day or so.

  3. Pete says:

    Hey Greg,

    Just wanted to say thanks for all the use­ful Visio tips here. I’ve been using Visio for years and liv­ing with a load of frus­tra­tions.…. only to find out the solu­tions were there if only I’d RTFM. Anyway, read­ing all this has been very use­ful and will save me hours in future. Thanks!

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!