There was a problem rendering this file.
gearsgen.py
8 kb / 892 downloads / 3 years ago

Who's Derived It?

DXF and GCode- generator for involute gears by bkubicek 2 years ago
View all 1 variations

They Like It

j0rdan
lollipop
DocJames
Leonardo
largasso
desktoplathes
Amp
alasdair53
msruggles
Fangschaltung
cpodbob
lviola
clothbot
Mazzo
nyrath
robonut
Madox
Benjamin
ssd
kristianpaul
wizard23
jmil
phooky
albanetc
asp55
DementedChihuahua
hoeken
MaskedRetriever
antifuchs

Instructions

Usage example:
python gearsgen.py -n 5 -m 1 -c 0.5 -f mygear.dxf

Help message as generated by 'python gearsgen.py --help':

Usage: python gearsgen.py [ options ]

Options:

-i ....... generate outline for internal gear
(this means the meaning of pitch and clearance
is inverted the sign of the spacing is changed)

-n N ..... number of teeth (default = 5)

-m U ..... module (default = 1.0)
(for gears to mesh, their modules must be equal. the gears
working diameter is [number of teeth] times [module])

-c X ..... clearance (default = 0.0)
(move the gear bottom land down by this number of milimeters)

-a X ..... addendum offset (default = 0.0)
(move the gear top land up by this number of milimeters by
incrasing the addendum by this value. use with care!)

-p X ..... pitch (default = 0.0)
(move the gear top land up by this number of milimeters by
linearly extending the top land. do not confuse with '-a'!)

-s X ..... spacing (default = 0.0)
(move the flanks inside by this number of milimeters.)

-e ....... generate only DXF entities without DXF header or DXF footer
(usefull for creating larger dxf files from a script)

-l T ..... name of the DXF layer for generated entities
(without this option, no layer information is added to the DXF)

-x X ..... add this value to all X-coordinates in the generated DXF file
-y X ..... add this value to all Y-coordinates in the generated DXF file
-r X ..... rotate the generate wheel by this ange in degrees
(this can be used together with -e and -l to generate more complex
DXF files from scripts. default oriantation is gear at 0/0 with
a bottom land facing to the positive x-axis)

-f T ..... name of the DXF file to generate
(without this option, a (tk) window is opend and the generated gear
is displayed. note that the gear is scaled to fit the viewport.)

Argument types as used in abve options reference:
N = positive integer
U = unsigned decimal number
X = signed decimal number
T = text

Comments