Here’s the scenario: it’s Friday and you’re putting the finishing touches on a set of permit drawings. You’re going to drop them off at the contractor’s office on your way out of town for the weekend. Right before you hit the “Print” button, you get a phone call. It turns out the city doesn’t like the font you’re using and won’t accept the drawings unless you change it. Argh!!!
You could go through each text style manually but that will take at least a half-an-hour. You’d much rather be hitting the road instead of clicking the mouse button.
Replace Revit Fonts
Creating text styles in Revit is easy. Select a font and a text size and you’re almost done. You could easily create 10 – 15 text styles in no time at all. But what if you need to make a change to those styles? Is there an easy way to update your Revit text styles without going through each style one-by-one?
Fortunately the Revit API makes it very easy to replace the font in your Revit model. Using the “Replace Font” macro, you can quickly replace a font in all your text styles with another font in less than ten seconds. It’s that fast.
Using the Macro
The macro starts by reading all the text styles in the current project file. It uses this data to create a list of all the fonts used by the text styles. The macro also reads the installed fonts on your computer. Using this information, the dialog box prompts you to select the font you want to replace as well as the new font.
Clicking the “OK” button starts the font replacement. The macro loops through all the text styles. If the current text style is using the font to be replaced, the macro updates the text style’s properties to use the new font instead.
Sure beats clicking through each text style manually, right?
Download the Macro
You can download the macro (in Revit 2014 and 2015 formats) from the ArchSmarter Revit Macro library. Don’t have access? Sign up for ArchSmarter updates in the form below and get immediate access to this and other time-saving Revit macros!