Sheet metal workbench questions on unfold and bend lines

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!
chrisb
Posts: 24369
Joined: Tue Mar 17, 2015 9:14 am

Re: Can't unfold in the sheet metal workbench

Postby chrisb » Thu Oct 17, 2019 5:50 am

andrigtmiller wrote:
Thu Oct 17, 2019 4:22 am
Yes, I think that would be helpful.
Thanks for understanding. I changed the title. Feel free to change it yourself to so something better.
chrisb
Posts: 24369
Joined: Tue Mar 17, 2015 9:14 am

Re: Sheet metal workbench questions on unfold and bend lines

Postby chrisb » Thu Oct 17, 2019 6:07 am

andrigtmiller wrote:
Thu Oct 17, 2019 4:29 am
The reason this is important, is because I need to create a 2D drawing, using the TechDraw workbench, and show the measurements for all the bend lines.
I upload the file which was only a few clicks away from your model:
- start FreeCAD, load model, switch to SheetMetal
- select Unfold and delete it
- select Bend007 and make it visible
- select the bottom (from the inside)
- click "Flatten folded sheet metal object", check the boxes like this:
Snip macro screenshot-019ae5.png
Snip macro screenshot-019ae5.png (34.86 KiB) Viewed 636 times
- click ok, you should see this:
Snip macro screenshot-bfedd5.png
Snip macro screenshot-bfedd5.png (35.88 KiB) Viewed 636 times
Attachments
FuelCell_cb.FCStd
(93.67 KiB) Downloaded 23 times
andrigtmiller
Posts: 43
Joined: Wed Jan 27, 2016 5:14 pm

Re: Sheet metal workbench questions on unfold and bend lines

Postby andrigtmiller » Fri Oct 18, 2019 12:29 am

Okay, I followed your directions, and I get the same results. No bend lines, and I don't get the sketches generated either.

This is beyond frustrating, because it seems to work fine for everyone else.
chrisb
Posts: 24369
Joined: Tue Mar 17, 2015 9:14 am

Re: Sheet metal workbench questions on unfold and bend lines

Postby chrisb » Fri Oct 18, 2019 7:12 am

You can try to reset the configuration with the button in the preferences. Another possibility is to delete your config files or to move them in case you want to restore them.

And you may try a recent 0.19 Appimage. Although easyw-fc reported that it works in 0.18 too, that wasn't explicitely for the bend lines.
User avatar
easyw-fc
Posts: 2840
Joined: Thu Jul 09, 2015 9:34 am

Re: Sheet metal workbench questions on unfold and bend lines

Postby easyw-fc » Fri Oct 18, 2019 11:57 am

andrigtmiller wrote:
Fri Oct 18, 2019 12:29 am
Okay, I followed your directions, and I get the same results. No bend lines, and I don't get the sketches generated either.

This is beyond frustrating, because it seems to work fine for everyone else.
If you enable the Report Panel, which messages you get?
andrigtmiller
Posts: 43
Joined: Wed Jan 27, 2016 5:14 pm

Re: Sheet metal workbench questions on unfold and bend lines

Postby andrigtmiller » Fri Oct 18, 2019 3:23 pm

easyw-fc wrote:
Fri Oct 18, 2019 11:57 am
andrigtmiller wrote:
Fri Oct 18, 2019 12:29 am
Okay, I followed your directions, and I get the same results. No bend lines, and I don't get the sketches generated either.

This is beyond frustrating, because it seems to work fine for everyone else.
If you enable the Report Panel, which messages you get?
The messages are very long, but at the end, I get the following:

Unfold successful
19Standard_OutOfRange No OCCT Exception Message
Traceback (most recent call last):
File "/home/andrigtmiller/.FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2871, in accept
grp2 = Drawing.projectEx(co, norm)
<class 'Part.OCCError'>: 19Standard_OutOfRange No OCCT Exception Message

So, there is an error in the Python script, which may explain why I don't get the bend lines.
User avatar
papyblaise
Posts: 1738
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Sheet metal workbench questions on unfold and bend lines

Postby papyblaise » Fri Oct 18, 2019 3:42 pm

from my 1st picture, I project the sketch on a Techdraw sheet, and Dim it (some of )
Attachments
fold lines.FCStd
(112.54 KiB) Downloaded 11 times
User avatar
easyw-fc
Posts: 2840
Joined: Thu Jul 09, 2015 9:34 am

Re: Sheet metal workbench questions on unfold and bend lines

Postby easyw-fc » Fri Oct 18, 2019 4:36 pm

andrigtmiller wrote:
Fri Oct 18, 2019 3:23 pm
Unfold successful
19Standard_OutOfRange No OCCT Exception Message
Traceback (most recent call last):
File "/home/andrigtmiller/.FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2871, in accept
grp2 = Drawing.projectEx(co, norm)
<class 'Part.OCCError'>: 19Standard_OutOfRange No OCCT Exception Message

So, there is an error in the Python script, which may explain why I don't get the bend lines.
This is an error in the execution related to your version of OCC
andrigtmiller wrote:
Mon Oct 14, 2019 4:19 am
OS: "Fedora release 30 (Thirty)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 3.7.3
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)
andrigtmiller
Posts: 43
Joined: Wed Jan 27, 2016 5:14 pm

Re: Sheet metal workbench questions on unfold and bend lines

Postby andrigtmiller » Sat Oct 19, 2019 12:18 am

easyw-fc wrote:
Fri Oct 18, 2019 4:36 pm
andrigtmiller wrote:
Fri Oct 18, 2019 3:23 pm
Unfold successful
19Standard_OutOfRange No OCCT Exception Message
Traceback (most recent call last):
File "/home/andrigtmiller/.FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2871, in accept
grp2 = Drawing.projectEx(co, norm)
<class 'Part.OCCError'>: 19Standard_OutOfRange No OCCT Exception Message

So, there is an error in the Python script, which may explain why I don't get the bend lines.
This is an error in the execution related to your version of OCC
andrigtmiller wrote:
Mon Oct 14, 2019 4:19 am
OS: "Fedora release 30 (Thirty)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 3.7.3
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)
Yes, this version of open cascade is very old, and the AppImage is using 7.3.0, so that is definitely the problem. I may switch to the AppImage for now, to get this done.

Thanks for helping with the report panel. I didn't think to do that.
andrigtmiller
Posts: 43
Joined: Wed Jan 27, 2016 5:14 pm

Re: Sheet metal workbench questions on unfold and bend lines

Postby andrigtmiller » Sat Oct 19, 2019 2:46 am

andrigtmiller wrote:
Sat Oct 19, 2019 12:18 am
easyw-fc wrote:
Fri Oct 18, 2019 4:36 pm
andrigtmiller wrote:
Fri Oct 18, 2019 3:23 pm
Unfold successful
19Standard_OutOfRange No OCCT Exception Message
Traceback (most recent call last):
File "/home/andrigtmiller/.FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2871, in accept
grp2 = Drawing.projectEx(co, norm)
<class 'Part.OCCError'>: 19Standard_OutOfRange No OCCT Exception Message

So, there is an error in the Python script, which may explain why I don't get the bend lines.
This is an error in the execution related to your version of OCC
andrigtmiller wrote:
Mon Oct 14, 2019 4:19 am
OS: "Fedora release 30 (Thirty)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 3.7.3
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)
Yes, this version of open cascade is very old, and the AppImage is using 7.3.0, so that is definitely the problem. I may switch to the AppImage for now, to get this done.

Thanks for helping with the report panel. I didn't think to do that.
Just wanted everyone who has helped out with this, that I have successfully gotten what I need by using the AppImage, instead of the Fedora 30 install. It works perfectly, and I opened a bug report against the Fedora distribution, since they are including such an old version of Open Cascade. The AppImage has 7.3.0, which is only one release behind the most current, which is 7.4.0, but the Fedora build is using 6.9.1.