Solved

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

Posted on 2010-09-01
5
2,960 Views
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.
cisco-icon.jpg
0
Comment
Question by:snowdog_2112
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:MONSTA2008
Comment Utility
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.
0
 
LVL 30

Accepted Solution

by:
Scott Helmers earned 500 total points
Comment Utility
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.

cisco-1.jpg
cisco-2.jpg
0
 

Author Closing Comment

by:snowdog_2112
Comment Utility
Can I give you 2,000 points for that?!!
THANK YOU THANK YOU THANK YOU!!!

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!
0
 

Author Comment

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

Expert Comment

by:Scott Helmers
Comment Utility
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.

Scott
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article is a step by step guide on how to create a basic PTP link using Ubiquiti airOS devices. This guide can be used on the following Ubiquiti AirMAX devices. Nanostation, Bullets, AirBridge, Nanobeam, NanoBridge to name a few. Please review …
In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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 (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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…

763 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

8 Experts available now in Live!

Get 1:1 Help Now