Starting parts
Re: Starting parts
Very nice! Making real thread indeed takes a lot of time. I agree with shoogen though, there should be a chamfer on the end of the screw.
Out of curiosity, where did you get the specs? I've been having a hard time finding them myself, I had to guess some details such as chamfers or fillets on the heads. To get the full spec you need to pay for each ISO spec document.
Out of curiosity, where did you get the specs? I've been having a hard time finding them myself, I had to guess some details such as chamfers or fillets on the heads. To get the full spec you need to pay for each ISO spec document.
Re: Starting parts
Ok Norm, then I got somthing for you:
- Attachments
-
- Gewindetabellen.7z
- (2.68 KiB) Downloaded 183 times
Stop whining - start coding!
Re: Starting parts
I have no problem to give the macro another license and have it inside of FreeCAD. But I am wondering, as I copied the license claim from an FreeCAD-file. It was FeaturePython.py from wmayer.shoogen wrote:
I would like to see this script included into FreeCAD (LGPL), but unfortunately it is licensed GPL 2+.
I have a little bit different view. There are good reasons to have no python code inside of an online library.shoogen wrote:
As Jürgen pointed out, a script should not be part of the parts library for security reasons.
On the other side, users will build up their personal library. It may contain parts loaded down from their vendors. And it may contain selfmade special parts, where FeaturePython provides a good base to have parameterized parts. FreeCAD provides actually no help, to organize this. There should be an configurable parts-library-path for a user library. In case of linux users, this path or pathes should point to the user area. And to make FeaturePython-parts to work, this library path should allow to run python code. Maybe there is a way to have both: online-parts without python in one directory and python parts in another directory.
I am not shure with the chamfer. In technical drawings all screws have a chamfer, as this is the way threads are drawn. But not all real screws have chamfers. ISO 2009 has no chamfer. I saw a note on an educational document, mentioning an ISO-standard 4753 that it is allowed without chamfer for <= M4. I do not have this standard yet. I think there is some improvement possible.shoogen wrote:
But i think there should be a chamfer with amount of the pitch at end of the screw (or any male thread).
From the UI perspective i personally would prefer to use the task view instead of a dialog.
I am not an experienced programmer. So I choosed a way, which gave an easy start with an explained example. Thanks to wmayer. If you could provide help, other interfaces are possible.
My starting point was this German document, which also influenced the selection of the screws:normandc wrote:
Out of curiosity, where did you get the specs?
http://www.duckma.de/mb14/SiteDocs/DIN% ... nenbau.pdf
This side has also good information about a selection of screws: http://www.agrati.com/it/unificati/it/g ... cati01.htm
Here you can get some documents, but I am wondering how they can made parts from this drawings. http://www.vaishnavfasteners.com/Standard.html
I found some pictures at my search, which provided the additional information. There is also some range of variation allowed like chamfer between 15° to 30°. I am really considering buying a compiled set of standards in form of a book. As this will give me access to a collection of standards at an moderate price.
Students typically have the possibility to look up the standards in the university library.
Re: Starting parts
Some interesting sites on threads and bolts:
http://www.gewinde-normen.de/en/index.html
http://www.schrauben-normen.de/ (german only)
Regards
Ektus.
http://www.gewinde-normen.de/en/index.html
http://www.schrauben-normen.de/ (german only)
Regards
Ektus.
Re: Starting parts
Thanks for those links guys, they have more info than the ones I could find. I see I'll have to make some minor changes to the screws and nuts I uploaded.
jriegel, thanks for your files as well!
jriegel, thanks for your files as well!
Re: Starting parts
I changed the license to LGPL. Two additional screw-types are added. A washer was added. Screws with chamfer have a chamfer now.shoogen wrote: I would like to see this script included into FreeCAD (LGPL), but unfortunately it is licensed GPL 2+.
If you select a circle on a hole, or alternativel the inner surface of a circular hole and the circle at top of that hole at the same time, the screw will be placed into the hole with the create button.
I did not change the UI so far. I think, it could be later part of the assembly workbench. So at moment it works as macro.
- Attachments
-
- screw_maker1_2.py.zip
- Macro for making and placing screws
- (11.21 KiB) Downloaded 177 times
Re: Starting parts
Oh that's really cool!ulrich1a wrote:If you select a circle on a hole, or alternativel the inner surface of a circular hole and the circle at top of that hole at the same time, the screw will be placed into the hole with the create button.

Thanks for your script!
Re: Starting parts
hi
Nice work i created the page in macro recipe Macro_screw_maker1_2
some interesting links
http://metaluver.wifeo.com/documents/les-vis-pdf.pdf
http://www.technocalcul.com/FR/geometrie_tete.html
http://www.wiha.com/france/Informations ... ete-de-vis
ps :
Nice work i created the page in macro recipe Macro_screw_maker1_2
some interesting links
http://metaluver.wifeo.com/documents/les-vis-pdf.pdf
http://www.technocalcul.com/FR/geometrie_tete.html
http://www.wiha.com/france/Informations ... ete-de-vis
ps :
Code: Select all
ScrewMaker.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) # This function brings the window to the top
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: Starting parts
Thanks Mario, that's what I was going to suggest. 

Re: Starting parts
Thanks Mario for the nice macro page.
I added some more screws in the meantime. Most of the screws, I wanted to program, are included. I need to do some other things now. Workbench integration and some nuts have to wait, until I find time again.
So here is the latest version of screw_maker.
Have fun
Ulrich
I added some more screws in the meantime. Most of the screws, I wanted to program, are included. I need to do some other things now. Workbench integration and some nuts have to wait, until I find time again.
So here is the latest version of screw_maker.
Have fun
Ulrich
- Attachments
-
- screw_maker1_4.py.zip
- macro for creating and placing screws
- (18.41 KiB) Downloaded 174 times