This MCG creates simple Gear geometry. It is not very nice since MCG does not have a Bevel or Face Extrude op...I'm simply showing the fiddly things I had to do to 'fake' this...my pain, your gain...
It is to be found in Create Panel, Vu Category.
Second video shows how to get Quads...
Ver 1.01.00: added hole functionality