Hi, I'm using the fasteners module to create parametric screws according to ISO standards.
I have a question, I would like to know if it is possible to change the length of the screw beyond the limit of the ISO standard. For example, in the attached image, the maximum length is 60 mm, but I would like it to be 100 mm. Is that possible?
Thanks
Change the length of bolts or screws - WB Fasteners
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
- dcapeletti
- Posts: 504
- Joined: Wed Jul 23, 2014 2:27 pm
Change the length of bolts or screws - WB Fasteners
- Attachments
-
- Fasteners.png (139.18 KiB) Viewed 576 times
Re: Change the length of bolts or screws - WB Fasteners
I think it's not possible, but you can easily adapt it:
- Search for the file Mod/fasteners/screw_maker.py in your FreeCAD directory
- Search for iso4017range, currently it is at line 221
- Edit the second M8 value, e.g. to 100
Usually you would not use a thread-up-to-head but rather ISO4014.
- Search for the file Mod/fasteners/screw_maker.py in your FreeCAD directory
- Search for iso4017range, currently it is at line 221
- Edit the second M8 value, e.g. to 100
Usually you would not use a thread-up-to-head but rather ISO4014.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Change the length of bolts or screws - WB Fasteners
Hi
My solution (Do at home), you add a cylinder "through" the length you need, plus a chamfer
My solution (Do at home), you add a cylinder "through" the length you need, plus a chamfer
- Attachments
-
- M8x100.PNG (49.14 KiB) Viewed 553 times
Re: Change the length of bolts or screws - WB Fasteners
This is up to the maximum length for iso4017 (200mm) and values defined by that standart - no 170mm for that standart.
Another ugly hack - use bolt as basefeature for PD body and pad as needed:
- dcapeletti
- Posts: 504
- Joined: Wed Jul 23, 2014 2:27 pm
Re: Change the length of bolts or screws - WB Fasteners
Thank you very much for your reply. This has been helpful to me. In the future it would be useful to be able to put another size without editing the code of the module.chrisb wrote: ↑Mon Mar 11, 2019 3:21 pm I think it's not possible, but you can easily adapt it:
- Search for the file Mod/fasteners/screw_maker.py in your FreeCAD directory
- Search for iso4017range, currently it is at line 221
- Edit the second M8 value, e.g. to 100
Usually you would not use a thread-up-to-head but rather ISO4014.
Thanks
Re: Change the length of bolts or screws - WB Fasteners
Yes, some customization possibilities would be helpful. I don't know the code well enough to judge if this would be possible too for all other types of fasteners.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.