Screw Maker

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Screw Maker

Post by ulrich1a »

It seems there are some issues with the Screw Maker macro here and then.
So I do open this thread, where feedback can be provided.

The generation of a real thread is possible with Screw Maker but needs a long time. It needs some minutes at my computer for one screw! So be patient. The console has now a feedback, which counts the rotations made at the cutting process.

I made some bugfixes lately. The latest version is Screw Maker 1.7.

Ulrich

Edit: There is a Version 2.0 posted here: http://forum.freecadweb.org/viewtopic.p ... =30#p95929
Edit: There is a Version 2.2 posted here: https://forum.freecadweb.org/viewtopic. ... 53#p234653
Edit: Screw Maker is now on github: https://github.com/ulrich1a/screw_maker
Attachments
screw_maker1_7.py.zip
(18.83 KiB) Downloaded 9985 times
Last edited by ulrich1a on Wed Oct 17, 2018 10:09 pm, edited 3 times in total.
User avatar
ValkaTR
Posts: 6
Joined: Fri May 09, 2014 5:34 pm
Location: Tallinn, Estonia
Contact:

Re: Screw Maker

Post by ValkaTR »

Thank you lots! It works!
One step closer for open-source world domination! :D
Will it improve more?
Screws need lock-washer, holes and nuts with threads.
User avatar
ValkaTR
Posts: 6
Joined: Fri May 09, 2014 5:34 pm
Location: Tallinn, Estonia
Contact:

Re: Screw Maker

Post by ValkaTR »

There are troubles with some bolts.
Something went wrong during screw making.
Some look fine, some are not.
iso4017_M1_6x8.png
iso4017_M1_6x8.png (149.39 KiB) Viewed 23956 times
iso4017_M10x30.png
iso4017_M10x30.png (290.74 KiB) Viewed 23956 times
iso4017_M14x35.png
iso4017_M14x35.png (357.46 KiB) Viewed 23956 times
iso4017_M16x40.png
iso4017_M16x40.png (264.76 KiB) Viewed 23956 times
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Re: Screw Maker

Post by ulrich1a »

ValkaTR wrote:Screws need lock-washer, holes and nuts with threads.
Nuts are on my todo-list. A screw tap may be added too. But it needs some time. I have so far not looked for a standard about lock-washers.

I am aware, that the real thread is not working for larger diameters. The thread-cut-algorithmen has to be refined for larger diameters. That at least some threads are working is based on trial and error at searching for a working method. The helix-function from opencascade has a lot of issues.
I did not look a the very small threads. That these having issues is new to me. Thanks for reporting.
Please be patient. I have a few things on my list, and will work on improvements.

Ulrich
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Screw Maker

Post by bejant »

Hi Ulrich, I read this post:
viewtopic.php?f=3&t=7096
and was wondering if there's a way to use your macro to make a headless screw or bolt; just the threaded length?
catohagen
Posts: 5
Joined: Mon Oct 27, 2014 7:32 am

Re: Screw Maker

Post by catohagen »

Hi,

Im trying to make a conical helix and was wondering if you could help with the math, or maybe explain the math in your script and how I can add a taper, i'm using arc to draw, so it needs center-x,center-y and end-x ,end-y for each half pitch as you draw the thread....I can compensate/donate to you or freecad for your help.
lsmod
Posts: 4
Joined: Tue Mar 31, 2015 10:29 am

Re: Screw Maker

Post by lsmod »

bejant wrote:Hi Ulrich, I read this post:
viewtopic.php?f=3&t=7096
and was wondering if there's a way to use your macro to make a headless screw or bolt; just the threaded length?
I have the same question.

This script is wonderful - but i need more to have a thread in a solid object.
Is it possible to get this?
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Re: Screw Maker

Post by ulrich1a »

lsmod wrote:but i need more to have a thread in a solid object.
Do you need a inner thread in a solid object in order to screw something in, or do you want something like a threaded bolt on a solid object?

Ulrich
geant
Posts: 42
Joined: Mon Mar 30, 2015 11:54 pm

Re: Screw Maker

Post by geant »

A tapped hole; threaded pocket!
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Re: Screw Maker

Post by ulrich1a »

geant wrote:A tapped hole; threaded pocket!
This is on my todo-list. I want to do it with the right profile for an inner thread. I already had some thoughts on it. So ScrewMaker should than provide a screwtap to cut a thread into a solid. Unfortunately the progress is slowly, so more in months than days.

I have some code that generates threads faster. Unfortunately it breaks some screws. So I need to fix this first, before publishing it.

Ulrich
Post Reply