Repository navigation
Releases
v2.1.2 English units section overwriting metric variables
Fixed one annoying bug of English units section overwriting some variables used by both English & Metric. The Top angle & Bottom Angle variable being the most obvious.
v2.1.1 Coil Polygon & Star Position Options
Made some minor adjustments.
- Tab3 is activated if coils were ran last time or if coils are selected from the 1st drop down dialog box in tab1
- Added an option for 6 different locations for vertex to start polygons or star points on. 0, 90, 180, 270, 22.5 (8-sided Polygons), 45.0 (12-Sided Polygons).
v2.1.0 Mostly fixed Coil problems
Fixed numerous bugs in the coil/spiral section of code
- For ellipse sections, I was using radii for ellipse instead of diameters.
- I had the inside & outside section position backwards from the way Fusion uses them, so I made that consistent with fusion.
- Replaced 33 if,elif statements in command_created routine with 2 simple statements.
- If Coil options was run last time, it will select the Coil Options tab 1st when this program is again.
- Since I added a variable to Coils, Coil_DialogInput_V10.txt is now the previous input file for coils.
- For polygons, you can now select several orientations for the starting vertex in case you want your polygon oriented differently.
This can be useful when using 3, 5, 6, 8 or 12 sided polygons.
v2.0.0 Added Coil Tab
Added Coils option with profiles for circles, ellipses, polygons, rectangles & stars and also spiral that will use any of those profiles
Also cleaned up code some to get rid of some of the global variables. I ran Ruff on the code which found several problems I fixed. Think I got rid of over half of global variables.
- Use evenly divisible by 4 spline points for the coils & spirals. I am using 20 by default
- There is a new default file for the coil inputs named: Coil_DialogInput_V9.txt. If it does not exist it gets created the 1st time you run a coil. This saves your previous coil or spiral input parameters.
- I am only using mm units to start with for the coils & spirals until I flush out any bugs I find in the near future.
- The big advantage of using this versus the built-in coil is that it uses a profile for the coil which you can go back through the timeline to adjust to your needs, like rounding the corners of sharp edges.
v1.5.1 Threads To Create bug on save Defaults
After adding English threads, I introduced a bug where the Type of threads to draw was always saving what was set for English threads. This default value is saved as a 1, 2, 3, 4 or 5
v1.5 Added English Thread types
You can use English or Metric threads now. If the units in your active drawing is In or Ft, it will default to English, otherwise it will set it to Metric. You can still use either unit, by changing it in the dialog box.
Since English threads generally require more precision because the way the threads are defined, I ran into a problem if your Preferences Unit and Value Display General Precision is set to a low number like 3. This is because English threads are measured with Threads per Inch (TPI). For instance 24 TPI would be a decimal equivalent of 0.041666667". You might want to consider changing this to 9 places in your preferences. Probably will not cause you a problem either way as I save the current preference value, set it to 9, then change it back to what you set it to after that portion of the code is run.
v1.4.6 Added checks for errors in DialogInput_V9.txt file
- Added checks for errors in DialogInput_V9.txt file. If you enter a bad value, it will correct itself next time around. This is not a perfect solution, but I didn't want to duplicate all that error checking code since the global variables did not seem to work correctly within a subroutine for those checks and I could not figure out why.
For instance entering .4.3 for the M/F Gap will give you an error, but next time you run the program it will reset that value to .3 - I set default pattern type to Pattern instead of Helix since it is much faster & more accurate.
- Added the M/F Gap size to the Nut Body name.
v1.4.5 Added new Pattern option for threads which is faster
-
Added new Pattern option & disabled Center Line option since that did not work a lot of times.
The Pattern is faster than previous Helix or LongHelix & more accurate. This method draws one
thread profile & one revolution of the helix path. It then draws one revolution of the threads & uses
the pattern along a path to create all the threads. The DrawCylinder routine will combine them all together.
Using more spline points, like 36 or 45 does not bog it down now when using the pattern option.
I originally used the rectangular pattern with a quantity of 1 for other side of rectangle, but then realized the
pattern along a path would be simpler. -
Adjusted the ChamferNut Routine to always have a single profile for the chamfer.
-
Added error checks in the DrawCylinder Routine.
-
Made height of Vertical line in Helix sketch to match height of threads to use with pattern along path
v1.4.1 Several Bug Fixes
- Fixed Not being able to change Cham_Wid bug because update routine kept changing it
- Fixed Starts 1, 2, 4 bug where it was not setting Helix pitch correctly relative to current Thread pitch
- Added WARNING Overlap message if the Female profile would overlap. This sometimes happens when using Real offsets.
- Moved the M/F thread Gap to Tab 1 on the dialog box for easier access.
v1.4.0 Real Offsets Added
Got rid of some duplicate code I initially had in there for the real offsets. That code was not published though.
Added a choice for for 1-Start, 2-Start or 4-Start since I made separated the pitch for the threads & helix. Changing this will automatically change the Helix pitch to 1x the Thread pitch for 1-Start, 2x the Thread pitch for 2-Start & 4x for 4-Start. You can still adjust that in the text box for the Helix pitch after you set the number of Starts.
Fixed a problem that has been in there for a while for being able to do negative threads on top or bottom with positive threads on the other side. I had to add a couple more if statements for this to work.
Changed the Tab1 of the dialog some to give more choices for threads to draw.
1 - Single Thread Only
2 - Bolt Thread
3 - Threads M/F
4 - Nut Thread
5 - Bolt & Nut Threads
The DialogInput_V5.txt changed to DialogInput_V9.txt
I added a read only text box for Thread Width & Thread Height to give you an idea the size of these before hitting the OK button
I did notice one bug so far in that you can not change the Chamfer width. I am not sure the best way to fix that yet since the input dialog changed routine updates it.