DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Involute Gear Generation

Started by ablincoe, May 20, 2015, 06:39:48 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

ablincoe

On a subject that hasn't been talked about for a number of years (since 2007), and one that has interested me for a while....
I have been working on a macro (below) that seems to work for me (but I am slightly prejudiced) at this time.
If anyone is interested in giving it an  Alpha/Beta  type test, I would be appreciative.  I am also open to suggestions for improvement.
The program uses a "rolling Plane Subtraction" process to end up with a completely messing gear complete with undercut teeth when necessary.
At the moment, Internal Gears are not possible, but that is coming also.

USER INPUT
The User may be asked to input a few parameters.
   Number of Teeth Desired  (U_COUNT)
      .1 - .999         For a Rack (only) of (X + 10) teeth
      3 – 999         For a Single Gear with the designated number of teeth
      1xxx – 1999      For a Series of Gears from 3 → xxx teeth
      1xxxyyy – 1xxxyyy   For a Series of Gears from xxx → yyy teeth
   Pressure Angle  (U_ANG)   20 is "normal"
   Actual Pitch/Modulus definitions based on 3 parameters
      (U_PTCH$)   (P)itch  or  (S)pacing
      (U_UNITS$)   (I)mperial (Inch)  or (M)etric (Modulo)  Units
      (U_PMS)   Pitch/Modulo/Spacing value
   (U_PCT)   Tooth Hight %  (71.62% is the current default)  (DP * 2.25)
   (U_COUNT)   Smoothness
         With the Smoothness set to 180, each gear takes about 30 seconds to produce
         As you approach 300, the system may slow down SIGNIFICANTLY
         If set to 360, the system could easily STOP and FAIL

For the program to ask of the optional values, go to the  GetParameters  area and set the value of the specific variable to either  0  or  "NULL".  If you want to be able to adjust the logging level for each run, set the initial value to  -1.  All of the default parameters are listed close to the beginning of the macro.

The program does not force or actually use the "Unit Type" within the drawing.  It is requested only for the purpose of "base calculations" to prepare for gear creation.  DCAD can easily "re-size" the gear to any actual diameter that is necessary for your drawing.  I would recommend leaving the Pitch/Modulo/Spacing set to something easy like – 1, 10, 100.  You might even want to convert the resultant drawing into a series importable "Symbols"

Macro Output
Each of the Gear Plane Layers contains several Entities.  They are
   The Actual Gear Plane
   A Pitch Circle
   A Point Mark  on the Pitch Circle at the Center of the first Gear Tooth  (bottom tooth)
   A Point Mark  on the Center of the Pitch Circle
   A Point Mark  on the Pitch Circle at the Center of the first Gear Gap  (just right of bottom)

The code is a bit large for putting in-line, so I have attached it.

Key Words:  Involute, Gear, Trochoid, Hob, Hobbing

PS:  I am one of those awaiting the arrival of  -  3D Printable - STL Files.
       But currently remain on DCAD - V19

Allen

(Edit  5/21/15  22:55 EDT) - My apologies for a non-wirking attachment.  The attachment has been replaced, and it functions now. 
           The PROPER file to download is the one that is  16Kb  in size.
(Edited  5/23/15 11:00 EDT)  The errant attachment has been removed.

ablincoe

A corrected macro file was placed onto sequence-1 as:
       Involute.d3m (16.87 kB - downloaded 0 times.)

I could find no way to remove the old attached file that does not function due to a tag definition.  If someone could let me know how, or a moderator could remove it for me, that would be better than having 2 macro files attached to this posting.

Thanks in advance,
Allen

samdavo

#2
Allen,
With one of your own posts, you should have the option of Modify.   Go into that, select attachments , and delete any old superseded ones. (i.e. uncheck them)
cheers
PS thanks for the macro -will give it a spin on the weekend.
Looks like good gear to me :)

samdavo

mmm - ablincoe, sorry I was presented with the enclosed error message.  Cheers, sam

ablincoe

Samdavo,
The Macro tries to create a log file in the directory/name of  -  C:\tmp\Involute.log
Your system probably does not have a  C:\tmp  directory on it

Try changing the log file name on line-15  to a valid location on your system.
     L_FL$         = "C:\tmp\Involute.log"

Allen