• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Visio Guy

Smart graphics for visual people




  • Home
  • Hire Me
    • Hire Me
    • Résumé
  • Products
    • Products
    • Bubble Revision Shape
    • Layers to Pages Utility
    • Rack Unit Dimension Line
    • Radial Elements Tool with up to 100 Wedges
    • Text on a Circle Visio SmartShape
  • Index
    • Articles by Date
    • YouTube – VisioGuy
    • Download Information
    • Suggestion Box
    • Shop
    • Visio Art
    • Visio Links
    • – Visio Shapes & Stencils
    • – Visio Templates & Drawings
  • About
    • About
    • Donate
    • GitHub
    • jsFiddle
    • Reading List
    • Subscribe & Follow
      • – E-mail
      • – facebook
      • – Twitter
      • – RSS
    • Privacy Policy
  • Discussion Forum
You are here: Home / Visio Content / Shapes / Illustration / Hexagonal Custom Fill Pattern

Hexagonal Custom Fill Pattern

September 9, 2008 By Visio Guy 2 Comments

Read Full Article

A recent Visio Guy forum post asked about a creating a hexagonal grids. The poster wanted to create some new Visio network shapes that show-off the groovy new hexagonal ventilation grids that you see on modern-looking servers. As I considered all the subtle, yet elegant, ways in which I could hint, guide, steer—teach the man to fish—I finally caved-in and whipped up a hexagonal Visio custom fill pattern that you can download (for free) right here! Ok, you just knew that the download link wouldn’t be right at the top of the article now, didn’t you? We’ve got to at least go through the motions of educatin’…

How the Pattern Was Created

In order to create a custom fill pattern, we need to create the smallest possible element that can be repeated horizontally and vertically to create the grid. There’s a fairly simple recipe to do this:

  1. Create a portion of the repeating grid
  2. Identify where the pattern repeats
  3. Slice and dice

Unfortunately, item #2 isn’t always that easy…

Manually Create Some Grid

First, I whipped out the Basic stencil, located under: File > Shapes > General > Basic Shapes. On that stencil was a ready-to-eat Hexagon shape, which saved me the time of messing with *gasp* trigonometry. Then, using Visio’s alignment functions (see the Action toolbar) and some tricks with the Size & Position window (look under the View menu), I was able to manually piece together a small, repeating grid of hexagons.

repeating-hex-pattern

Where Does it Repeat?

At this point, I could identify where the pattern repeated, both in the horizontal and vertical directions. For hexagons, this was fairly easy. The rectangle shows a region that will repeat in both directions to create a hexagonal grid. For other shapes, it can be a lot harder to find where the repeating happens. I’m sure there’s a science behind this, certainly somebody has come up with an algorithm (that we need to code in VBA and offer for download), but I have yet to do that research.

Chop, Toss, Recombine

With the pattern drawn, and the rectangle identifying where the repeats occur, I then used a few “boolean operations” to extract my pattern. Located under the Shape > Operations menu, Trim, Join, and Combine performed their work admirably to give me this:

hexagonal-pattern-unit

Trim sliced all of the lines at their intersections. This gave me a lot of line segments, most of which were summarily deleted. Join was then used to create continuous paths out of segments with coincident endpoints. This was mostly done for efficiency – to make the shape smaller and simpler. Finally, all of the pieces were Combined into a single shape. You could just as easily group them together, but I like to Combine, since it creates a single shape, with a single ShapeSheet. It’s smaller on disk, and probably adds slightly to performance, since there’s less data to read.

Creating the Custom Pattern (Master?!)

Yes, custom patterns are stored as Visio masters. You don’t really need to know that. So just ignore that. But they used to be accessed via the document stencil, and you still edit custom patterns the same way that you edit normal masters. These days they are accessed via the Drawing Explorer window, which you can show from the View menu. In today’s download, you’ll already see the Hexagon master in place when you expand the Fill Patterns tree node:

custom-fill-patterns-tree

Creating a new pattern is just a matter of right-clicking the Fill Patterns node, and choosing New Pattern… You’ll see a dialog that allows you to enter a name, and choose from a few options that I won’t go into right now, but you might experiment with when you get a second.

new-custom-fill-pattern

To edit the pattern, just double-click on the Hexagon node. There you can change the line-weight and the size of the pattern to meet your needs. It is good to leave the color black, though. Any element of a fill pattern that is black will take on the fill color of the shape to which it is applied. If you changed the Hexagon pattern to have red lines, then you couldn’t change the color of the pattern when it was applied to a shape. It becomes less flexible for end-users who don’t know how to edit the pattern itself.

Applying the Custom Fill Pattern

Once your pattern is created, you can apply it via the Format > Fill dialog. The pattern will show as text waaay down at the bottom of the Pattern drop-down list:

fill-dialog-with-custom-pattern

If you apply it to a rectangle, it will look like this:

hex-pattern-black-on-white

Note that the hexagonal fill pattern takes the fill color of the shape, not the line color of the shape. I’ve made the rectangle’s line color red just to illustrate this point. This rectangle actually has a black fill! I know this seems a bit weird, but it actually makes sense. Since the hexagons are actually what is “in the fill”, so to speak, they should take the color of the fill pattern! We could add a solid-fill background to our custom pattern, but this would make it hard to control the color of the hexagons and the color of the background. Below, we have two rectangles: one is black-filled with a solid-pattern. On top of that, we’ve placed a white-filled, hex-pattern rectangle. This is a good start towards making some chic looking ventilation grids!

hex-pattern-white-on-black

Download “Hexagon Custom Fill Pattern for Visio”

s!Aj0wJuswNyXlhVQT4G-al7AbEEUz – Downloaded 2468 times – 103.00 B
  • Tweet
  • More
  • Pocket
  • Share on Tumblr
  • Print
  • Email

No related posts.

Filed Under: Illustration, Shapes

Previous Post: « ‘Indexed’ Shapes – for that Hand-drawn Look
Next Post: Add Multiple Layers At Once With This Neat Trick »

Reader Interactions

Comments

  1. Jay says

    March 4, 2009 at 1:28 am

    Thank you for the tutorial! It helps a lot now that I don’t have to be dependent on the un-customizable visio patterns.

  2. idrinkdeodorant says

    July 12, 2013 at 6:19 pm

    In Visio 2013 the hex pattern is always a light blue, regardless of what foreground color you pick. Any idea why?

    It makes the hex not visible at all.

Leave a Reply Cancel reply

Primary Sidebar

Buy Über Bubble Revision Shape
Purchase

Categories

Buy my book!

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Tag Cloud

A/V Artistic Effects BPM Code Connectors Control Handles Countries Custom Patterns Custom Properties Data Graphics Data Linking Data Visualization David Edson David Parker Fill Format Formulas Functions Geometry Gradient Images Links Maps Multi-shapes Network Programming repeating shapes Resources Right-Click Actions Scale Shape Data ShapeSheet ShapeSheet Formulas ShapeSheet Functions SharePoint shiny SmartShapes Sport Sports Text Themes Tools Transparency User-defined Cells Visio 2007 Visio SmartShapes

Top Posts & Pages

  • - Visio Shapes & Stencils
  • - Visio Templates & Drawings
  • Amazon AWS Visio Shapes
  • Dynamic Updating Org Charts in Visio!
  • Text on a Circle Visio Shape
  • Bubble Revision Shapes
  • Crayon Visio Network Shapes, Revisited
  • Sankey Diagram Shapes for Visio
  • Map of World
  • AV Engineering Diagrams with Symbol Logic ECAV

www.visguy.com - Visio Guy - since 2006