I was recently asked how to change the default font size and line weight in Visio, and then saw then many others are asking the same sort of question. I found one reasonable answer suggesting that you should create a new document from your required template, then edit the Styles to suit, and then save as a new personal template. Well, I am not sure I like that answer because it means you must create a duplicate template for each one you use. So, I decided to see if I could find a better way…
Firstly, it is important to know that these default settings are not editable for the whole Visio application, because they are stored in each document, under the Styles collection. You can view the Styles in a document using the Drawing Explorer window that can be opened from the Developer tab.
Notice that they all inherit from the Theme style. So, editing settings in the Theme ShapeSheet will mean that all the others will inherit the value, unless it has a different one set to override it.
For example, I edited the Theme style in the following example, and changed the Line Width (Weight) of the Shape to 1.25 pt, and the Text / Font / Size to 10 pt.
So, all of the lines that had not been formatted in the diagram immediately changed to 1.25 pt, and the font size of the unformatted text changed to 10 pt… except for the connectors that I added … because they are based on the Connectors style, which had a font size of 8 pt overriding the Style that it is based on.
So, I edited that style too, and changed the font size to 10 pt, and then everything was as desired.
That is quite a lot of changes to do each time a document is started, and that is why the original answer was to save the document as a new template.
So, if you want to automatically update the Line Weight (LineWeight) and Font Size (Char.Size) of the Connector style, you could put the following formula in a suitable cell of a ShapeSheet. This could be an Action row, for example:
=SETF(GetRef(Styles!Connector!LineWeight),"10 pt")+SETF(GetRef(Styles!Connector!Char.Size),"1.25 pt")
But wait, this is Visio, so why not reference the LineWeight cell and Char.Size cell of the shape itself?
Then add the same formula to the EventDblClick and EventDrop cells…
Finally, put this shape, called say Set Connector Defaults, into your Favourites, and simply drag and drop it onto a document that you want to update the Connector style of.
All of the connector shapes, which have not been re-formatted, automatically inherit the new settings.
Just a quick reminder that you may have already been using a template that has a formatted master in the document. This is certainly true for most flowchart diagrams, so simply edit the Dynamic Connector master in the Document Stencil, because all its instances will be automatically updated throughout the document … if they have not been locally formatted.
Of course, you should always ensure that the Match master by name on drop setting is ticked in the Master Properties...
Credit to my friend John Goldsmith for pointing out that the styles can be updated from the ShapeSheet.
Pushing Data Visualizer in Visio beyond its limits
My last post was about some of the lessons learnt when trying to push Data Visualizer to its limits, but this one has some ways of overcoming these limitations. The main lesson learnt is that DV binds the shapes within the DV container shape, CFF Data Visualizer, and controls some of the ShapeSheet cells that…
Pushing Data Visualizer in Visio to the limits!
Regular readers of my blog will know that I like to use the Data Visualizer (DV) in Visio Plan 2, but I recently tried to help a user who really decided to push it to the limits. In this scenario, there were multiple connections, but with different labels, being created between the same flowchart shapes,…
Taking Visio Actions Rows to the limit
I recently (re-)discovered that there is a limit to the number of Actions section rows that will be evaluated for display on the right mouse menu of a Visio shape. I have not hit a limit (yet) for the number of rows that can be added to the Actions section … so why is there…
A Multi-Time Zone Clock for Visio
I wrote a post about making a clock face in Visio fifteen years ago, but a reader recently asked about displaying multiple time zones. Well, I have previously written about time zones in Visio, so I accepted the challenge to improve upon my earlier work. (more…)
Update any Visio ShapeSheet cell with External Data
When Microsoft introduced a new way of linking external data to Visio shapes in 2007, I initially bemoaned the inability to update anything but Shape Data row values, unlike the old database add-on that I had been using for 10 years. The new method, though, has many advantages over the old way, not least that…
Referencing Container Data in Visio
Microsoft Visio has a useful Structured Diagramming concept that consists of Containers, Callouts and Connectors. The first of these features make it possible for shapes to know what they are contained within, as a better option to grouping shapes together. Grouping can hide or break the grouped shapes smartness, so Visio provides two ways of…
Leave a Reply