Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: jamtart on April 24, 2009, 12:26:46 AM

Title: Creating a Gear Shape in Visio
Post by: jamtart on April 24, 2009, 12:26:46 AM
I have created a gear type shape in an effort to recreate in Visio the image attached. I tried to upload the visio file but apparently it is too large  :( I something that I a fairly happy with but invite others to share how they might do it or even direct me to an appropriate template.
Title: Re: Creating a Gear Shape in Visio
Post by: jamtart on April 24, 2009, 12:28:03 AM
Maybe it wan nto too large after all. Take a look and feel free to offer advice.. Newbie here however...
Title: Re: Creating a Gear Shape in Visio
Post by: JuneTheSecond on April 24, 2009, 02:37:34 AM
Hi,

How would you like to use custom line patterns?
Title: Re: Creating a Gear Shape in Visio
Post by: jamtart on April 24, 2009, 02:47:43 AM
Not sure what you mean, however as long a I get it to look like the rotor in the end I am happy. I found my version a lot of work and pieces, so I am wondering if there are other ways to create this. Interesting items you have given me.
Title: Re: Creating a Gear Shape in Visio
Post by: JuneTheSecond on April 24, 2009, 10:40:28 AM
Hi,

A gear added to the drawing.
Title: Re: Creating a Gear Shape in Visio
Post by: Visio Guy on April 24, 2009, 10:41:31 AM
Hi Guys,

I wrote a gear-drawer many, many years ago to play with the (then brand new) ability to automate Visio. It is stuck in an old binary-VB format, but I will try to dig it out sometime in the next week or two.
Title: Re: Creating a Gear Shape in Visio
Post by: jamtart on April 24, 2009, 11:47:30 AM
hi JuneTheSecond, awesome work! I got the template from the website and am finding how to recreate the gear from that. Thank you for pointing me in the right direction. I am sure to make plenty of use of that.
And of course Visio Guy I would be interested in seeing your gear-drawer.
I thought that something like what I am looking to create would have been an existing shape in visio.
Title: Re: Creating a Gear Shape in Visio
Post by: JuneTheSecond on April 24, 2009, 11:59:49 AM
Hi,

Here the attractive points of custom line patterns are well explained.
http://www.visguy.com/2008/03/03/release-the-power-of-visio-custom-line-patterns/
Title: Re: Creating a Gear Shape in Visio
Post by: jamtart on April 24, 2009, 01:40:08 PM
So here is another question. I would like to be able to change the color of the 'cogs'. I can change the color of the main body. Looking in the shape sheet and played around there but I can not do it.
Title: Re: Creating a Gear Shape in Visio
Post by: JuneTheSecond on April 25, 2009, 03:00:34 AM
Hi,

Bacause it is defined in the custom line pattern.
You need to edit the custom line pattern.

Menu view/drawing explorer.
Expand kinds of line/right click rect.
Select edit pattern shape.

And then you would see the pattern definition window.
Title: Re: Creating a Gear Shape in Visio
Post by: jamtart on April 25, 2009, 03:20:51 AM
Wow, that is amazing, I never would have found that. I never even heard of Custom Line Patterns till I started this thread. Thank you so much for all this incredible info.  ;D
Title: Re: Creating a Gear Shape in Visio
Post by: wapperdude on April 26, 2009, 01:31:46 AM
Here's an alternative method, it uses the ArcArray macro  :o-- see Circle up the wagons, the arc is here! It's located in the User-submitted Stuff.  ;D

The attached Visio file provides the step by step procedure to do this.  The advantage over custom lines is you can design the specific number of gear teeth.

In the example, I wanted 12 teeth, with 12 spaces.  That places the teeth on 30 deg centers.  So, each tooth must cover an arc length of 15 degrees.  The rest is explained in the file, which should include the macro.

HTH
Wapperdude
Title: Re: Creating a Gear Shape in Visio
Post by: jamtart on April 26, 2009, 02:07:17 AM
That is cool wapperdude, it may be somewhat beyond my skill set but I will certainly give it a try none the less. Thankyou.
Title: Re: Creating a Gear Shape in Visio
Post by: wapperdude on April 26, 2010, 12:10:48 AM
I re-visited the gear making methodology and created a way that may be simpler to understand and use.  Basically, you start with a single line, run the ArcArray macro in the circular mode.  If you want 21 teeth, you need 2X the number of lines, or 42.  There is a tedius portion to the process, namely, deleting alternate sections.  Beyond that, it's rather straight forward.

Wapperdude
Title: Re: Creating a Gear Shape in Visio
Post by: Visio Guy on April 26, 2010, 08:25:32 AM
Cool work, wapperdude!

You guys might also check out: Radial Elements Tool (http://www.visguy.com/2009/11/05/radial-elements-tool/). At around 6:30, the video shows how to make a gear using the tool/shape, and the article discusses it near the bottom of the post.
Title: Re: Creating a Gear Shape in Visio
Post by: jamtart on April 27, 2010, 11:28:43 AM
Very nice tutorial wapperdude, thank you.