The embossed geometry has sharp edges to the base plate and needs two fillet operations after it in the design tree. These fillets lose their defining edges, when the forming feature is suppressed.jaisejames wrote: ↑Mon Sep 27, 2021 9:18 am Below option is to unfold sheet-metal by suppressing forming feature [Hoping/expecting that it will be last feature in tree view. so top naming issue will not be there].
Sheet Metal Workbench
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Sheet Metal Workbench
Re: Sheet Metal Workbench
Hello,
when I try to use the unfold function, I get this error message:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
12:10:09 Engineering mode is not enabled.
12:10:09 Running the Python command 'SMUnfold' failed:
Traceback (most recent call last):
File "C:\Users\andre\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalUnfolder.py", line 3047, in Activated
taskd = SMUnfoldTaskPanel()
File "C:\Users\andre\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalUnfolder.py", line 2454, in __init__
spreadsheets = findObjectsByTypeRecursive(FreeCAD.ActiveDocument, 'Spreadsheet::Sheet')
File "C:\Users\andre\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalUnfolder.py", line 2398, in findObjectsByTypeRecursive
for _o in get_linked_objs_recursive([obj]):
File "C:\Users\andre\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalUnfolder.py", line 2365, in get_linked_objs_recursive
objects += o.Group[Parts_index].Group
'FeaturePython' object has no attribute 'Group'
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
If I create a new project and I copy/paste the object into it, the unfold function works well.
Any idea about the cause?
Thanks!
when I try to use the unfold function, I get this error message:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
12:10:09 Engineering mode is not enabled.
12:10:09 Running the Python command 'SMUnfold' failed:
Traceback (most recent call last):
File "C:\Users\andre\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalUnfolder.py", line 3047, in Activated
taskd = SMUnfoldTaskPanel()
File "C:\Users\andre\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalUnfolder.py", line 2454, in __init__
spreadsheets = findObjectsByTypeRecursive(FreeCAD.ActiveDocument, 'Spreadsheet::Sheet')
File "C:\Users\andre\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalUnfolder.py", line 2398, in findObjectsByTypeRecursive
for _o in get_linked_objs_recursive([obj]):
File "C:\Users\andre\AppData\Roaming\FreeCAD\Mod\sheetmetal\SheetMetalUnfolder.py", line 2365, in get_linked_objs_recursive
objects += o.Group[Parts_index].Group
'FeaturePython' object has no attribute 'Group'
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
If I create a new project and I copy/paste the object into it, the unfold function works well.
Any idea about the cause?
Thanks!
Re: Sheet Metal Workbench
Upload the file. Is your FreeCAD current?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Sheet Metal Workbench
Yes let me share the model... You can take any of the parts and try to unfold, and the function will not work.
I am not 100% sure, but I think this problem appearead after I used the Fasteners workbench. You can see some screws and nuts under the Group "Viteria".
My FreeCAD is up to date. Here is my system info:
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)
Many thanks for your attention and support!!!
- Attachments
-
- Stand-Concept.FCStd
- (454.83 KiB) Downloaded 70 times
Re: Sheet Metal Workbench
The issue seems related to fasteners'links objects and only this.
While I suppress links objects of fasteners it works to unfold.
If I create a link from any sheetmetal parts it works to unfold as well.
But if I create a link from a fastener object then unfold fails.
It looks like a bug.
Hi RT, what's your opinion about that?realthunder wrote:ping
Tks for your attention.
Offtopic edit: the "Stand-concept" file fails to recompute during migration in you Linkstage3 branch. Here is the output:
Code: Select all
8:40:26 Traceback (most recent call last):
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 1096, in execute
mingap = fp.minGap.Value, maxExtendGap = fp.maxExtendDist.Value)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 679, in smBend
mainlist, trimedgelist = getBendetail(selFaceNames, MainObject, bendR, bendA, flipped, offset, gap1, gap2)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 352, in getBendetail
lenEdge, selFace, thk, revAxisV = smEdge(selFaceName, MainObject)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 342, in smEdge
selFace = smFace(selItem, MainObject)
<class 'NameError'>: name 'MainObject' is not defined
18:40:27 Traceback (most recent call last):
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 1096, in execute
mingap = fp.minGap.Value, maxExtendGap = fp.maxExtendDist.Value)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 679, in smBend
mainlist, trimedgelist = getBendetail(selFaceNames, MainObject, bendR, bendA, flipped, offset, gap1, gap2)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 352, in getBendetail
lenEdge, selFace, thk, revAxisV = smEdge(selFaceName, MainObject)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 342, in smEdge
selFace = smFace(selItem, MainObject)
<class 'NameError'>: name 'MainObject' is not defined
18:40:27 Traceback (most recent call last):
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 1096, in execute
mingap = fp.minGap.Value, maxExtendGap = fp.maxExtendDist.Value)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 679, in smBend
mainlist, trimedgelist = getBendetail(selFaceNames, MainObject, bendR, bendA, flipped, offset, gap1, gap2)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 352, in getBendetail
lenEdge, selFace, thk, revAxisV = smEdge(selFaceName, MainObject)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 342, in smEdge
selFace = smFace(selItem, MainObject)
<class 'NameError'>: name 'MainObject' is not defined
18:40:29 Traceback (most recent call last):
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 1096, in execute
mingap = fp.minGap.Value, maxExtendGap = fp.maxExtendDist.Value)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 679, in smBend
mainlist, trimedgelist = getBendetail(selFaceNames, MainObject, bendR, bendA, flipped, offset, gap1, gap2)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 352, in getBendetail
lenEdge, selFace, thk, revAxisV = smEdge(selFaceName, MainObject)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 342, in smEdge
selFace = smFace(selItem, MainObject)
<class 'NameError'>: name 'MainObject' is not defined
18:40:41 Traceback (most recent call last):
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 1096, in execute
mingap = fp.minGap.Value, maxExtendGap = fp.maxExtendDist.Value)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 679, in smBend
mainlist, trimedgelist = getBendetail(selFaceNames, MainObject, bendR, bendA, flipped, offset, gap1, gap2)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 352, in getBendetail
lenEdge, selFace, thk, revAxisV = smEdge(selFaceName, MainObject)
File "/home/pi/.FreeCAD/Mod/sheetmetal/SheetMetalCmd.py", line 342, in smEdge
selFace = smFace(selItem, MainObject)
<class 'NameError'>: name 'MainObject' is not defined
18:40:42 Recompute failed! Please check report view.
OS: Debian GNU/Linux 10 (buster) (LXDE/LXDE-pi)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.28143 (Git)
Build type: Unknown
Branch: LinkDaily
Hash: 44be6d539871be4083e83f428e8fcfbcf38408ef
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
Last edited by -alex- on Wed Sep 29, 2021 4:47 pm, edited 2 times in total.
Re: Sheet Metal Workbench
Agreed, I can replicate the same thing! Thanks!-alex- wrote: ↑Wed Sep 29, 2021 10:35 amThe issue seems related to fasteners'links objects and only this.
While I suppress links objects of fasteners it works to unfold.
If I create a link from any sheetmetal parts it works to unfold as well.
But if I create a link from a fastener object then unfold fails.
It looks like a bug.
Re: Sheet Metal Workbench
I don't think so, you're still using 0.19.1, 0.19.2 is Git revision 0.19.24291 as per:gigax wrote: ↑Wed Sep 29, 2021 9:40 am
My FreeCAD is up to date. Here is my system info:
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)
OS: Windows 7 Version 6.1 (Build 7601: SP 1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United Kingdom (en_GB)
Re: Sheet Metal Workbench
thanks Syres! I didn't realize there was a more recent release!
Re: Sheet Metal Workbench
JFYI I was able to reproduce the issue with the very last release FC0.20 master.
Re: Sheet Metal Workbench
There are some differences between the command names in the GUI and names of each Python modules and the associated icons.
I'm using the GUI names for wiki descriptions and Roy_43 corrects it to match the module/icon names. We could save bit of work and time if the names would be matched.
Is it hard to change the Python modules? And add translatability at the same time?
I would like to help, but my Python skills are limited. Can I try it in my own environment somehow and (if I'm successful) later merge it for the next release?
Some of us ignore the fact that the SheetMetal workbench still isn't ready for translation and already work on the French and German translations.
I'm using the GUI names for wiki descriptions and Roy_43 corrects it to match the module/icon names. We could save bit of work and time if the names would be matched.
Is it hard to change the Python modules? And add translatability at the same time?
I would like to help, but my Python skills are limited. Can I try it in my own environment somehow and (if I'm successful) later merge it for the next release?
Some of us ignore the fact that the SheetMetal workbench still isn't ready for translation and already work on the French and German translations.