Starting parts

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Starting parts

Postby NormandC » Fri Aug 09, 2013 7:36 am

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.
User avatar
jriegel
Site Admin
Posts: 3369
Joined: Sun Feb 15, 2009 5:29 pm
Location: Ulm, Germany
Contact:

Re: Starting parts

Postby jriegel » Fri Aug 09, 2013 8:03 am

Ok Norm, then I got somthing for you:
Attachments
Gewindetabellen.7z
(2.68 KiB) Downloaded 104 times
Stop whining - start coding!
ulrich1a
Posts: 1872
Joined: Sun Jul 07, 2013 12:08 pm

Re: Starting parts

Postby ulrich1a » Fri Aug 09, 2013 9:15 am

shoogen wrote:
I would like to see this script included into FreeCAD (LGPL), but unfortunately it is licensed GPL 2+.
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:
As Jürgen pointed out, a script should not be part of the parts library for security reasons.
I have a little bit different view. There are good reasons to have no python code inside of an online library.
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.
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 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.
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.
normandc wrote:
Out of curiosity, where did you get the specs?
My starting point was this German document, which also influenced the selection of the screws:
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.
User avatar
ektus
Posts: 141
Joined: Sat Sep 22, 2012 6:23 pm
Location: Germany

Re: Starting parts

Postby ektus » Fri Aug 09, 2013 11:49 am

Some interesting sites on threads and bolts:

http://www.gewinde-normen.de/en/index.html
http://www.schrauben-normen.de/ (german only)


Regards
Ektus.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Starting parts

Postby NormandC » Fri Aug 09, 2013 2:30 pm

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!
ulrich1a
Posts: 1872
Joined: Sun Jul 07, 2013 12:08 pm

Re: Starting parts

Postby ulrich1a » Sat Aug 17, 2013 8:34 pm

shoogen wrote: I would like to see this script included into FreeCAD (LGPL), but unfortunately it is licensed GPL 2+.
I changed the license to LGPL. Two additional screw-types are added. A washer was added. Screws with chamfer have a chamfer now.
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 98 times
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Starting parts

Postby NormandC » Sat Aug 17, 2013 8:45 pm

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.
Oh that's really cool! :)

Thanks for your script!
mario52
Posts: 2604
Joined: Wed May 16, 2012 2:13 pm

Re: Starting parts

Postby mario52 » Sun Aug 18, 2013 2:34 pm

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 :

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, Dialog creation. My macros on Gist.github.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Starting parts

Postby NormandC » Sun Aug 18, 2013 6:16 pm

Thanks Mario, that's what I was going to suggest. :)
ulrich1a
Posts: 1872
Joined: Sun Jul 07, 2013 12:08 pm

Re: Starting parts

Postby ulrich1a » Sun Sep 01, 2013 1:13 pm

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
Attachments
screw_maker1_4.py.zip
macro for creating and placing screws
(18.41 KiB) Downloaded 96 times