Change the length of bolts or screws - WB Fasteners

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
Post Reply
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Change the length of bolts or screws - WB Fasteners

Post by dcapeletti »

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
Attachments
Fasteners.png
Fasteners.png (139.18 KiB) Viewed 576 times
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: Change the length of bolts or screws - WB Fasteners

Post by chrisb »

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.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
meme2704
Veteran
Posts: 2926
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: Change the length of bolts or screws - WB Fasteners

Post by meme2704 »

Hi
My solution (Do at home), you add a cylinder "through" the length you need, plus a chamfer
Attachments
M8x100.PNG
M8x100.PNG (49.14 KiB) Viewed 553 times
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Change the length of bolts or screws - WB Fasteners

Post by kisolre »

chrisb wrote: Mon Mar 11, 2019 3:21 pm - Search for iso4017range, currently it is at line 221
- Edit the second M8 value, e.g. to 100
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:
LongerFastener.JPG
LongerFastener.JPG (63.71 KiB) Viewed 544 times
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: Change the length of bolts or screws - WB Fasteners

Post by dcapeletti »

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.
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.

Thanks
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: Change the length of bolts or screws - WB Fasteners

Post by chrisb »

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.
Post Reply