Sheet Metal unfold not working

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
chrisf
Posts: 212
Joined: Fri Jan 03, 2014 10:20 am

Sheet Metal unfold not working

Post by chrisf »

Sheet Metal work bench seems broken on my system. Think V0.17 was working before my upgrade to 18.04 LTS.

Just with a cube, height set to 1mm, one fold added, select top face of cube and hit unfold.

Running the Python command 'SMUnfold' failed:
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/SheetMetal/SheetMetalUnfolder.py", line 1567, in Activated
s = PerformUnfold()
File "/usr/lib/freecad/Mod/SheetMetal/SheetMetalUnfolder.py", line 1494, in PerformUnfold
theFaceList = TheTree.unfold_tree2(TheTree.root) # traverses the tree-structure
File "/usr/lib/freecad/Mod/SheetMetal/SheetMetalUnfolder.py", line 1433, in unfold_tree2
theShell = theShell + self.unfold_tree2(n_node)
File "/usr/lib/freecad/Mod/SheetMetal/SheetMetalUnfolder.py", line 1440, in unfold_tree2
nodeShell = self.generateBendShell(node)
File "/usr/lib/freecad/Mod/SheetMetal/SheetMetalUnfolder.py", line 1321, in generateBendShell
flat_shell.append(self.MakeFace(o_wire.Edges, b_wire.Edges))
File "/usr/lib/freecad/Mod/SheetMetal/SheetMetalUnfolder.py", line 1331, in MakeFace
w = Part.Wire([e1,e3,e2,e4])

OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
chrisb
Veteran
Posts: 54288
Joined: Tue Mar 17, 2015 9:14 am

Re: Sheet Metal unfold not working

Post by chrisb »

If you put the log output in code tags </> it is easier to handle and the indentation is preserved.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisf
Posts: 212
Joined: Fri Jan 03, 2014 10:20 am

Re: Sheet Metal unfold not working

Post by chrisf »

I see Sheet Metal workbench isn't in the latest AppImage :(

Can anyone recommend a version I can go back to to use it? I really need it ...
chrisf
Posts: 212
Joined: Fri Jan 03, 2014 10:20 am

Re: Sheet Metal unfold not working

Post by chrisf »

I'd forgotten it was an Add-On. Can easily go back to 0.16 (AppImages are good aren't they!) if necessary.
chrisf
Posts: 212
Joined: Fri Jan 03, 2014 10:20 am

Re: Sheet Metal unfold not working

Post by chrisf »

SheetMetal unfold is working fine using the 0.17 AppImage my crisis is over!
User avatar
meme2704
Veteran
Posts: 2926
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: Sheet Metal unfold not working

Post by meme2704 »

hi
Sheetmetal can not unfold a solid cube that by definition a block of compact material
it is necessary to decompose it in front and to respect the rules of manufacture of object in sheet: each being related to its neighbor by side only, also to respect the continuity of the thicknesses by sparing rays in the hinged angles
below a die built in small cubes, radiated and unfolded perfectly
Attachments
cube1.PNG
cube1.PNG (33.75 KiB) Viewed 1248 times
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Sheet Metal unfold not working

Post by NormandC »

chrisf wrote: Sat Dec 08, 2018 11:28 am I'd forgotten it was an Add-On.
Not only is it an add-on, it is also being continuously developed, but you need to update it manually. Use the AddonManager to update it.
Post Reply