?
Solved

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

Posted on 2010-09-01
5
Medium Priority
?
3,131 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:MONSTA2008
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.
0
 
LVL 31

Accepted Solution

by:
Scott Helmers earned 2000 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.

cisco-1.jpg
cisco-2.jpg
0
 

Author Closing Comment

by:snowdog_2112
ID: 33588066
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
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?
0
 
LVL 31

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.

Scott
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

AWS has developed and created its highly available global infrastructure allowing users to deploy and manage their estates all across the world through the use of the following geographical components   RegionsAvailability ZonesEdge Locations  Wh…
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…
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…
Suggested Courses

777 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