Sheet Metal Workbench

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!
User avatar
papyblaise
Veteran
Posts: 8000
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Sheet Metal Workbench

Post by papyblaise »

You must do the extension before the second bend , and you must do a add bool the U+exten and do "refine = true
I kno isn't easy to understand
Attachments
multi bend.PNG
multi bend.PNG (28.41 KiB) Viewed 1398 times
User avatar
shaise
Posts: 486
Joined: Thu Jun 11, 2015 8:11 am

Re: Sheet Metal Workbench

Post by shaise »

papyblaise wrote: Tue Mar 31, 2020 12:17 pm you must do a add bool the U+exten and do "refine = true
Where do I set it?
gordo89
Posts: 4
Joined: Tue Mar 31, 2020 9:44 am

Re: Sheet Metal Workbench

Post by gordo89 »

I used the following in the end.

part workbench --> join walled object --> connect objects.

below is the outcome which looks correct so far.
Attachments
Top Hat.FCStd
Top Hat
(141.57 KiB) Downloaded 47 times
User avatar
papyblaise
Veteran
Posts: 8000
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Sheet Metal Workbench

Post by papyblaise »

yes it's correct :!:
User avatar
thebighaggis
Posts: 43
Joined: Tue Apr 14, 2020 3:21 am

Re: Sheet Metal Workbench

Post by thebighaggis »

Hi All

I'm having trouble here... I had a dxf file I wanted to fold up into a channel and it only folded one side and failed when I tried to do the other side..
so I tried from scratch using Part Design WB with a basic rectangle 200x100x2mm adding fold wall sketches 20mm in from the sides... I've also tried this on FC 0.18 ver and same result..using 0.19 now for most things... see below screenshot and error message plus file uploaded... and version info..

Error:
Traceback (most recent call last):
File "C:\Users\TheBigHaggis\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalFoldCmd.py", line 203, in execute
invertbend = fp.invertbend, selFaceNames = fp.baseObject[1], MainObject = fp.baseObject[0])
File "C:\Users\TheBigHaggis\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalFoldCmd.py", line 174, in smFold
resultsolid = BOPTools.JoinAPI.connect(solidlist)
File "C:\Program Files\FreeCAD 0.19\Mod\Part\BOPTools\JoinAPI.py", line 67, in connect
new_list_of_shapes.extend( compoundLeaves(sh) )
File "C:\Program Files\FreeCAD 0.19\Mod\Part\BOPTools\Utils.py", line 73, in compoundLeaves
if shape_or_compound.ShapeType == "Compound":
<class 'AttributeError'>: 'NoneType' object has no attribute 'ShapeType'
972.546 <App> Document.cpp(3715): Failed to recompute Unnamed1#Fold001: 'NoneType' object has no attribute 'ShapeType'
Recompute failed! Please check report view.

Version Info:
OS: Windows 10 (10.0)Version Info:
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20477 (Git)
Build type: Release
Branch: master
Hash: 7d8ab175a68e476427e6e337fe3099b52da49dc8
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
Attachments
TEST-BUILT-FROM-SCRATCH.FCStd
(23.49 KiB) Downloaded 39 times
DXF-FILE-CONVERTED.FCStd
(79.27 KiB) Downloaded 60 times
FreeCAD 0.19.jpg
FreeCAD 0.19.jpg (106.91 KiB) Viewed 1298 times
jaisejames
Posts: 384
Joined: Sat Sep 24, 2016 6:51 am

Re: Sheet Metal Workbench

Post by jaisejames »

First delete all fold[ignore error on sketch not on face]. Please do first second sketch as first fold. then first as second fold.
sheet metal bend.png
sheet metal bend.png (20.83 KiB) Viewed 1264 times
Attachments
DXF-FILE-CONVERTED.FCStd
(117.14 KiB) Downloaded 40 times
User avatar
thebighaggis
Posts: 43
Joined: Tue Apr 14, 2020 3:21 am

Re: Sheet Metal Workbench

Post by thebighaggis »

Hi jaisejames
Thanks, and I did try that and it worked but it seems very unstable, I need the inside folds
to be 2mm Radius [ typical inside bend radius = material thickness ] I had to do this as I created
the part the way you showed me 1 fold at a time or I just get errors going back to change the radius
afterwards..
It's also interesting that the blank when flattened back out again it is not correct, original blank size
is 76mm when flattened out with 2mm radii it is not the same..however I have a work around , it was to
edit the kfactor in the bend properties to 0.17 and use ansi Kfactor 0.5 when using the flatten tool..
I think the calculations used to fold up sheet metal is not correct... hence the fudging of the Kfactor
I'm attaching finished part and drawing for your reference.. I double checked that my refold method
was accurate , I use Autodesk Inventor and it was very close,,,, well close enough for sheet metal :-)
Thank you for posting back the answer...much appreciated, I hope some people also get some use out
of my solution to make the part stretch the material correctly when using the fold wall & flatten tool ...
BTW I had to cheat and make the bend radius 1.99mm because of a cutout close to the bend :-)
Just Redid the Part & the 2mm Radius worked, the one where the cutouts are, I wonder why it didn't
work the 1st time??

Best Regards
Haggis [ John Hyslop ]
Attachments
Fold Up Blank.jpg
Fold Up Blank.jpg (171.95 KiB) Viewed 1245 times
DXF-FILE-CONVERTED.FCStd
(271.91 KiB) Downloaded 37 times
User avatar
thebighaggis
Posts: 43
Joined: Tue Apr 14, 2020 3:21 am

Re: Sheet Metal Workbench

Post by thebighaggis »

Hello again..

Could I make a suggestion to have a prompt after the fold wall icon is selected
to offer input as:-
1: Material Thickness
2: Inside Bend Radii
3: Kfactor

All the commercial software I've used have these parameters preset
and when it is flattened it retains it's correct blank size ( the original size )
and when folded up stretches the material according to these settings..

Just a thought.. otherwise.. it's a great add on for the sheet metal WB

I have manually edited SheetMetalFoldCmd.py Line 194
Set kfactor = (0.16,0.0,1.0,0.01) "just so I don't need to change all the time" ;-)
as long as you change the radius to suit the material thickness on the bend this setting is very close,
the folds stretch correctly and when you use the flatten tool your blank is very close to what you started
with rather than being smaller...so it's basically simulating what would happen to your blank in real life.

Is there a way to get the radius value in the script from the Pad thickness?

Thanks again for your help..

Cheers
Haggis
Last edited by thebighaggis on Mon Apr 27, 2020 7:53 am, edited 1 time in total.
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Sheet Metal Workbench

Post by chrisb »

thebighaggis wrote: Mon Apr 27, 2020 6:34 am All the commercial software I've used have these parameters preset
and when it is flattened it retains it's correct blank size ( the original size )
and when folded up stretches the material according to these settings..
I think thats the wrong process. It resembles a process of "Hey, I have this piece of metal, lets see what I can make of it". While SheetMetal works the other way round: "Hey, I have this model, how do I have to cut the sheet metal to get exactly this after bending".
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Sheet Metal Workbench

Post by easyw-fc »

thebighaggis wrote: Mon Apr 27, 2020 6:34 am Could I make a suggestion to have a prompt after the fold wall icon is selected
to offer input as:-
1: Material Thickness
2: Inside Bend Radii
3: Kfactor
Is the method in the README.MD the one you need?
Material Definition Sheet
You can use a Spreadsheet object to declare K-factor values inside the project file permanently. This will allow:
Different K-factor values to be used for each bend in your model
Sharing the same material definition for multiple objects
FreeCAD_SheetMetal/README.md
Image
Post Reply