help on sheet metal script

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
efyx
Posts: 280
Joined: Fri Sep 26, 2014 7:36 pm

Re: help on sheet metal script

Post by efyx »

jaisejames wrote: Sun Mar 17, 2019 4:31 pmnew test.
I have problem, because in \mod\ folder I don't have sheet metal (?). I am installing by addon menager but I am not sure is it up to date. Why I don't have this module in \mod\ directory?
jaisejames
Posts: 384
Joined: Sat Sep 24, 2016 6:51 am

Re: help on sheet metal script

Post by jaisejames »

open any macro, you can see your macro path. in the same folder, mod folder also there.
path.png
path.png (5.89 KiB) Viewed 1875 times
User avatar
shaise
Posts: 470
Joined: Thu Jun 11, 2015 8:11 am

Re: help on sheet metal script

Post by shaise »

jaisejames wrote: Mon Mar 18, 2019 7:01 am new extend implementation. could pls check it.
Hi jaisejames,

The new system looks as if the metal is twisted. old system looked clean.

old system:
old_auto_miter.png
old_auto_miter.png (16.13 KiB) Viewed 1827 times
new system:
new_auto_miter.png
new_auto_miter.png (21.42 KiB) Viewed 1827 times
and also, when you set unfold to true you get:
new_auto_miter2.png
new_auto_miter2.png (5.39 KiB) Viewed 1827 times

shai
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: help on sheet metal script

Post by -alex- »

Hi everyone,

first thanks for your great improvements on sheetmetal WB which is really convenient and reliable to get accurate unfolded metal parts. That's really cool :D
I have posted some threads about sheet metal, namely here: https://forum.freecadweb.org/search.php ... 5&sr=posts
I would like to post a tutorial concerning the unfolding of a non sheet metal 3D cad model, similar to the Jaisejames's tutorial https://forum.freecadweb.org/search.php ... 9&sr=posts
But the workflow I'm using fails at the end because of a limitation or maybe a bug concerning the unfolding function.
Please find here the FC file.
The problem: the part is made from a shell by using Part->3D Offset (fill option). I get the "Offset" feature, no any problem to unfold it.
But if I add some cosmetic Part->Fillet(s) on perimeter edges (I don't mean about bend edges) then I can't unfold the "Fillet001" feature and I get the error message.
That's sad because by using Part design workflow and part design fillets on a sheet metal base there is no any trouble to unfold.
Unfolding problem seems linked to offset + perimeter fillet (other 3D parts from boolean or extruded close sketch or part design, etc... are easy to unfold, even with perimeter fillets)

So, please could you guys (@shaise @jaisejames ?) allow the use of Part-fillet feature on sheet metal perimeter? :roll:

Below a screenshot of error messages and repport view:

Code: Select all

Error starting: volume unusable, needs a real 3D-sheet-metal with thickness at Face15

Error-msg-volume-unusable-sheet-metal-unfold.png
Error-msg-volume-unusable-sheet-metal-unfold.png (67.7 KiB) Viewed 1753 times
OS: Windows 10
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.19.16502 (Git)
Build type: Release
Branch: master
Hash: 06962535fa9ff348acca1b893cc4239908fb8bae
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)
Attachments
Error-unfold-sheet-metal-with-part-fillet.FCStd
(16.26 KiB) Downloaded 60 times
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: help on sheet metal script

Post by -alex- »

shaise wrote:"ping"
jaisejames wrote:"ping"
Bump
jaisejames
Posts: 384
Joined: Sat Sep 24, 2016 6:51 am

Re: help on sheet metal script

Post by jaisejames »

The problem related to Unfolding tool. Unfolding tool by Ulrich Brammer @ulrich1a. I don't have much idea.
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: help on sheet metal script

Post by -alex- »

Thanks for your reply, you're right it's about unfoldind so i should ping Ulrich. Tell me if I have to open another topic, I wouln't hijack this thread.
ulrich1a wrote:"ping"
Please Ulrich, see my message above https://forum.freecadweb.org/search.php ... 5&sr=posts
BTS: thanks for this great unfolding feature !
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: help on sheet metal script

Post by Kunda1 »

-alex- wrote: Thu Apr 25, 2019 4:05 pm
It's lame but currently you need to go an extra step in order to 'ping' a forum user. @ulrich1a's user_id needs to be included as such

Code: Select all

[quote=ulrich1a user_id=1928]ping[/quote]

ulrich1a wrote:ping
FTFY :wink:
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
easyw-fc
Veteran
Posts: 3630
Joined: Thu Jul 09, 2015 9:34 am

Re: help on sheet metal script

Post by easyw-fc »

-alex- wrote: Tue Apr 23, 2019 5:23 pmHi everyone,
The issue seems related to the Shape which is invalid... probably the issue is in the Fillet after the Offset operation...

-
invalid-shape.png
invalid-shape.png (9.81 KiB) Viewed 1629 times
-
After removing the last fillet, the unfolder works just fine

-
unfolded.png
unfolded.png (102.05 KiB) Viewed 1629 times
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: help on sheet metal script

Post by -alex- »

Kunda1 wrote: Thu Apr 25, 2019 11:48 pm FTFY :wink:
Thanks for the tip :)

easyw-fc wrote: Fri Apr 26, 2019 11:01 am After removing the last fillet, the unfolder works just fine
Thanks to have checked geometry, I didn't think to do that. However I can't remove the peripheral fillets after an offset because I need them in my workflow.
I have found the error: it's relevant with the offset direction! While offset outward no problem, error in geometry occures while offset inside the shell...
Hence there is a problem concerning Z shaped sheet metal because this kind of parts is offseted in both direction and will fail systematicaly.
So I assume this problem concerns Part WB and not sheetmetal WB. So...any help is welcome. Does it need a bug report?


Edit: Thanks to Maurice:
easyw-fc wrote: Fri Apr 26, 2019 9:34 pm Regarding your last file, where last fillet is on the border of the shape, I don't see why you need to add this last fillet before unfolding...
I have fixed the fc file, my bad: the peripheral fillet was on a wrong edge. Picture below is updated as well. Anyway, the problem remains.


Error-unfold-Z-sheet-metal-with-part-fillet.png
Error-unfold-Z-sheet-metal-with-part-fillet.png (79.93 KiB) Viewed 1594 times
Attachments
Error-unfold-Z-sheet-metal-with-part-fillet.FCStd
(22.52 KiB) Downloaded 49 times
Last edited by -alex- on Fri Apr 26, 2019 10:37 pm, edited 1 time in total.
Post Reply