Difference between revisions of "FreeCad Gear Box"
Jump to navigation
Jump to search
Russ hensel (talk | contribs) |
Russ hensel (talk | contribs) |
||
Line 9: | Line 9: | ||
In my approach to the problem each part needs to be positioned ( so far in the z axis ) so that all the parts come together correctly. I started to do this by making a sketch of a side view of the gearbox ( will add here later ). Then I began a spreadsheet of the z positions. I do not really like spreadsheets because I find them very error prone and compared to programming a bit tedious. | In my approach to the problem each part needs to be positioned ( so far in the z axis ) so that all the parts come together correctly. I started to do this by making a sketch of a side view of the gearbox ( will add here later ). Then I began a spreadsheet of the z positions. I do not really like spreadsheets because I find them very error prone and compared to programming a bit tedious. | ||
So I wrote a Python program. Initially I just set up a large number of variables and did the math. This was using Python as pretty much a general purpose calculator. Then I began to see a pattern in the calculations. | So I wrote a Python program. Initially I just set up a large number of variables and did the math. This was using Python as pretty much a general purpose calculator. Then I began to see a pattern in the calculations. | ||
+ | == A Pattern == | ||
The pattern goes like this: | The pattern goes like this: | ||
− | * | + | *Each part has a bunch of values that effect z positions |
− | + | ** Bottom of the part. | |
+ | ** Thickness of the part. | ||
+ | ** Midpoint of the part. | ||
+ | ** Top of the part. | ||
+ | * Clearly there are some simple relations between these values. | ||
[[Category:Python]] [[Category:FreeCad]] | [[Category:Python]] [[Category:FreeCad]] |
Revision as of 09:20, 10 February 2017
What
This is a little record of my work to make and print a gearbox using FreeCad
Issues
A Python Helper Program
In my approach to the problem each part needs to be positioned ( so far in the z axis ) so that all the parts come together correctly. I started to do this by making a sketch of a side view of the gearbox ( will add here later ). Then I began a spreadsheet of the z positions. I do not really like spreadsheets because I find them very error prone and compared to programming a bit tedious. So I wrote a Python program. Initially I just set up a large number of variables and did the math. This was using Python as pretty much a general purpose calculator. Then I began to see a pattern in the calculations.
A Pattern
The pattern goes like this:
- Each part has a bunch of values that effect z positions
- Bottom of the part.
- Thickness of the part.
- Midpoint of the part.
- Top of the part.
- Clearly there are some simple relations between these values.