FreeCAD_FastenersWB icon indicating copy to clipboard operation
FreeCAD_FastenersWB copied to clipboard

Question: How to handle screws that are not available in all sizes in a range

Open berberic2 opened this issue 1 year ago • 4 comments

P.e. „screw“ M20 is available in 80, 125 and 200 mm length but not in 100 and 160 mm. Of course the menu offers 100 and 160 mm as well, but these can not be generated because the length of the threaded part is only defined for known sizes…

For an example see https://github.com/berberic2/FreeCAD_FastenersWB/tree/din787

berberic2 avatar May 03 '24 10:05 berberic2

If there is any vendor that offers these sizes, I have no issue with adding these extra sizes to the "known" sizes. As long as all the standardized fasteners are rendered correctly, I don's see any issue with some non standard extras.

shaise avatar May 07 '24 05:05 shaise

Could they be labeled with "NoS"(None Standard) so that one can directly see that they are not defined in the Standard.

tobiasfalk avatar May 07 '24 06:05 tobiasfalk

I propose a change that does this, but not sure if this edge-case should be handled. (Code exists, PR not yet)

https://github.com/shaise/FreeCAD_FastenersWB/compare/master...berberic2:FreeCAD_FastenersWB:rangelist

If a screw only exists in discrete lengths (non-continous in range) there now is the possibility to define a [TYPE]rangelist table in the csv-files that associates a diameter with a list of length.

Example:

"DIN787rangelist" "Dia","" "M5","25","40" "M6","25","40","63" "M8","32","50","80" "M10","40","63","100" "M12","50","80","125","200" …

berberic2 avatar Jul 22 '24 20:07 berberic2

This is an interesting idea, Though I do not know if it worth the tedious job of going one by one over all possible options and update it. Perhaps a small change to your idea - instead of having to implement the list for all diameters, we can do it only for the diameters that matter - so only if rangelist exists AND the selected diameter exists in the range list, only then take it. This way if we have a fastener with 40 diameters and only one of them is non-continues in range, we need to add only this one to the rangelist.

shaise avatar Jul 23 '24 05:07 shaise