bug report - Sheet Metal Workbench

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
gigax
Posts: 42
Joined: Tue Oct 20, 2020 2:37 pm

bug report - Sheet Metal Workbench

Post by gigax »

Hello All,

I have been using FreeCAD in a production environment for about 18 months, with good results and some headaches, mainly due to the topological naming problem.

I am now encountering a repetitive issue when using Sheet Metal, and this is something that I never saw with FC 0.18 and with the development version of FC 0.19.

Let me describe it with a practical example, with Freecad file attached:

1)
I start with a cube, dimensioned as a piece of sheet metal 1.2 mm thick. This is my base sheet metal and I call it "sheet"

2)
Using the Bend function in Sheet Metal Workbench, I design my piece by making 3 bends. I change the orientation of these bends by setting True the attribute "invert".

3)
Now, if I change the thickness of the "sheet", let's say to 1 mm, the orientation of some bends is reversed, so I need to modify the "invert" attributes in order to fix it.


When this happens with larger pieces (with 10+ bends), after I did drawings with Template, the whole file gets corrupted, due to the Topo naming issue... So, basically I need to restart from zero the whole work, and this makes the utilization of FreeCad almost impossible.

Am I the only one to experience this?

Thanks!
gigax


OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Italian/Italy (it_IT)
Attachments
test.FCStd
(19.17 KiB) Downloaded 35 times
Syres
Veteran
Posts: 2900
Joined: Thu Aug 09, 2018 11:14 am

Re: bug report - Sheet Metal Workbench

Post by Syres »

Works correctly for me using the very latest Sheetmetal Wb downloaded today and the following FC version:

OS: Linux Mint 19.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.25739 (Git)
Build type: Release
Branch: master
Hash: 1ceaa09d179832c5fd785ff7e6c24c25ec76ce61
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)


Attached my file for you to test, I can change between 1mm thick Extrude to 4mm fine.
Attachments
Folded_Cube_SM249.FCStd
(38.6 KiB) Downloaded 36 times
gigax
Posts: 42
Joined: Tue Oct 20, 2020 2:37 pm

Re: bug report - Sheet Metal Workbench

Post by gigax »

Hello All,

this bug continues to be a problem for me. Please see the model attached. If I change the thickness of the lamination, some bends are reversed.

As you can imagine, when I do this after creating drawings with Techdraw, all dimensions are corrupted...and I need to restart from zero.

Am I doing something wrong?

Thanks!




OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Italian/Italy (it_IT)
Attachments
wrongbend.FCStd
(61.14 KiB) Downloaded 15 times
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Re: bug report - Sheet Metal Workbench

Post by Roy_043 »

If I open test.FCStd and wrongbend.FCStd and just recompute the files some bends already reverse. After correcting them I can change the thickness without issue. Maybe you need to update the SheetMetal WB?

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Dutch/Netherlands (nl_NL)
Attachments
test-roy.FCStd
(22.07 KiB) Downloaded 11 times
wrongbend-roy.FCStd
(63.05 KiB) Downloaded 10 times
gigax
Posts: 42
Joined: Tue Oct 20, 2020 2:37 pm

Re: bug report - Sheet Metal Workbench

Post by gigax »

Thanks Roy,

it's the same for me. If I recompute I get the error once, then it seems to work well.

The problem is that I have several designs done in the last months and often, randomly, when I need to open one and modify something, I get this error, so I need to fix the sequence of bends one by one and after that I need to redo from zero all Techdraw documents as all dimensions are corrupted.

This issue makes Freecad unusable for me, unfortunately. It didn't happen in the past until FC version 0.18... and this makes me think that it can be fixed somehow...
Post Reply