SHARETHIS.addEntry({ title: "Spiral Shape Maker", url: "http://www.visguy.com/2006/10/19/spiral-shape-maker/" });

" /> Visio Guy » Spiral Shape Maker
Development

Tips & code for programming Visio & using the ShapeSheet

Maps & Geography

Maps & geography shapes & templates galore!

Network

Shapes & tools for Visio network diagrams.

News

Find out what’s new in the Visio world!

Shapes

Download useful & attractive Visio shapes. For free!

Home » Shapes

Spiral Shape Maker

Submitted by Visio Guy on October 19, 2006 – 9:33 pm | | 8371 views 9 Comments

Read Full ArticleEver need a spiral shape? I just found one buried on my hard-drive — something I whipped up years ago, and modified last year. You can download it here.

The download consists of one Visio drawing file (.vsd). This file contains VBA (Visual Basic for Applications) macro-code that generates the spirals. You’ll need to allow this code to run in order to create spirals.

The macro-security setting is located under Tools > Macros > Security… If your security setting is Very High, then the macros will be disabled automatically. If it’s set to High, then you’ll get a warning that the macros have been disabled. A setting of Medium allows you to allow or disallow the macros when you open the document. This is the setting that I always use.

After you open the file, you’ll see a bunch of funny looking arrow shapes. You can select one of these arrow shapes, and type any kind of valid Visio ShapeSheet expression. Since this is the number of spirals that will be generated, you usually just need to enter a number. But if you’re familiar with Visio’s ShapeSheet, you can enter an expression like: 4 + Sin(35deg) - 8^2. Weird, eh?

Spiral Maker Examples

Once you’ve entered the expression, exit text-edit mode by clicking a blank area on the page, or by hitting the Esc key. Now right-click the arrow shape and choose the Generate Spirals from the context menu.

Note: that the spiral will be generated at the tip of the arrow, and if there was already a spiral there before, then the new spiral will be drawn over the old one — you might think that nothing happened at all!

Of course, you can check out the code that makes this all happen by opening up the VBA editor. The quickest way to see it is to press Alt + F11. But you can also get there via Tools > Macros > Visual Basic Editor…

Happy spiraling!

Download Spiral2005.zip (60 kb)

Download Sprial 2002.zip (57 kb)

9 Comments »

  • Lewis Graham says:

    Thanks for this application. I am writing my Master’s dissertation and needed a spiral! It works well - just what I needed.

    Kind regards

  • Paul Alliott says:

    I am trying to do a spiral model as part of my post graduate studies and have downloaded the above file but inly have visio2002. Is it possible to send a visio2002 version of the shape maker template?

  • Visio Guy says:

    Hey Paul,

    Greetings from Hong Kong — a thoroughly wired city. Check the end of the article again, I’ve uploaded “Download Sprial 2002.zip (57 kb)” for you. Hopefully this will work — and tell your fellow grad-students that the Visio Guy delivered from China! ;)

    - Chris

  • Benno Mueller says:

    Works like charm!

    Thanks,
    Benno.

  • Ravi says:

    You are just gr8!

  • Andy Jaxon says:

    Thanks so much for this - you’ve saved me at least an hour’s work on my assignment tonight!!
    It’s people like you that make the internet such a powerful thing..
    Keep it up.
    AJ

  • Laura says:

    how to do it clockwise !!

  • Visio Guy says:

    Hi Laura,

    Try flipping it horizontally or vertically (Ctrl+H or Ctrl+J)

  • Laura says:

    thanks a lot. it works !!

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.