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.