Visio (any version) - Cisco shapes, text label annoyance!

Posted on 2010-09-01
Last Modified: 2012-05-10
In the last 3 versions of Visio (2003, 2007, 2010), I've had an annoying issue with the official Cisco shapes.

When adding a text label to the shape (i.e., 2x click the shape to give it a name, label, IP, etc), the label text WILL NOT extend horizontally past the edges of the shape.

The attached image are 3 copy/pastes of the same shape, same text.
Question by:snowdog_2112
  • 2
  • 2

Expert Comment

ID: 33583451
Normally, I don't apply the default text label but rather insert my own text label formatted how I want it and then select both the text label and the shape and group them together.
LVL 30

Accepted Solution

Scott Helmers earned 500 total points
ID: 33586360
This problem is actually pretty easy to solve but it does require a small amount of "surgery" on the shape.

As you may or may not realize, every aspect of a Visio shape is controlled by settings in the "shapesheet" -- it's a spreadsheet-like collection of data that exists behind every object in Visio. All we need to do is make one change in the shapesheet for the Cisco shape to change the width of the text block.

In this case the problem is complicated very slightly by the fact that the switch object is a group consisting of multiple layers and the text we want is not on the group itself, but on a shape within the group (you'll see how I determined this in just a moment).
  1. Select the Cisco shape by clicking once
  2. Open the shapesheet (select Window>Show ShapeSheet from the main Visio menu)
  3. Scroll down to the Text Block Format section. What we actually want to look at is the Text Transform section but there isn't one for this shape; that's how I knew we needed to dig a bit deeper.)
  4. Click a second time on the Cisco shape, which will select the first subshape in the group. [Notice that the green handles around the edge of the shape change from open green squares (meaning that you can drag them) to green squares with X's in them (meaning that the subshape is locked).]
  5. Open the shapesheet
  6. Scroll down to the Text Transform section; the first picture below shows what you should see. Notice that the formula in the TxtWidth cell is "Width*1" -- this is what causes the behavior you observed: the width of the text is always equal to the width of the shape.
  7. Enter the formula shown in the second image below and press enter; the width of the text block will now be as wide as it needs to be and is no longer tied to the shape width.
  8. Close the shapesheet window
Now that you've modified the shape to behave the way you want it to, you'll probably want to drag it into a stencil of your own so you don't have to make this change again.


Author Closing Comment

ID: 33588066
Can I give you 2,000 points for that?!!

I can't tell you how many different half-crocked answers I've found.  Yours is not only correct (most importantly) but the screenshots were helpful!

Thanks again!

Author Comment

ID: 33588126
Is there a way to change the shape before it's placed on the page, so any new shapes will have that same property?
LVL 30

Expert Comment

by:Scott Helmers
ID: 33588487
Glad to help...

Yes, you can change the shape "ahead of time" -- in essence what you want to do is create a new master in a stencil that you can then reuse. (As an aside, for the correct terminology re masters, shapes and stencils see this article.). You can either drag your modified shape into the Visio-provided stencil (Visio will warn you that the stencil is read-only and will offer to open it for you) or you can click File>Shapes>New Stencil and create your own stencil.

BTW, if you have a bunch of existing drawings that have shapes you want to change, it's pretty easy to write a macro to fix the text width formula in all of them at once. Just post another question, along with a sample drawing, and I'll be glad to provide a short macro.


Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are thinking of adopting cloud services, or just curious as to what ‘the cloud’ can offer then the leader according to Gartner for Infrastructure as a Service (IaaS) is Amazon Web Services (AWS).  When I started using AWS I was completely new…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now