help on sheet metal script

Need help, or want to share a macro? Post here!
efyx
Posts: 280
Joined: Fri Sep 26, 2014 7:36 pm

Re: help on sheet metal script

Postby efyx » Mon Mar 18, 2019 12:42 pm

jaisejames wrote:
Sun Mar 17, 2019 4:31 pm
new 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: 280
Joined: Sat Sep 24, 2016 6:51 am

Re: help on sheet metal script

Postby jaisejames » Tue Mar 19, 2019 6:37 am

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 494 times
User avatar
shaise
Posts: 345
Joined: Thu Jun 11, 2015 8:11 am

Re: help on sheet metal script

Postby shaise » Thu Mar 21, 2019 1:52 pm

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 446 times
new system:
new_auto_miter.png
new_auto_miter.png (21.42 KiB) Viewed 446 times
and also, when you set unfold to true you get:
new_auto_miter2.png
new_auto_miter2.png (5.39 KiB) Viewed 446 times

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

Re: help on sheet metal script

Postby -alex- » Tue Apr 23, 2019 5:23 pm

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 372 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 16 times
User avatar
-alex-
Posts: 231
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: help on sheet metal script

Postby -alex- » Wed Apr 24, 2019 9:01 pm

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

Re: help on sheet metal script

Postby jaisejames » Thu Apr 25, 2019 4:37 am

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

Re: help on sheet metal script

Postby -alex- » Thu Apr 25, 2019 4:05 pm

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
Posts: 5763
Joined: Thu Jan 05, 2017 9:03 pm

Re: help on sheet metal script

Postby Kunda1 » Thu Apr 25, 2019 11:48 pm

-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:
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
easyw-fc
Posts: 2663
Joined: Thu Jul 09, 2015 9:34 am

Re: help on sheet metal script

Postby easyw-fc » Fri Apr 26, 2019 11:01 am

-alex- wrote:
Tue Apr 23, 2019 5:23 pm
Hi 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 248 times
-
After removing the last fillet, the unfolder works just fine

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

Re: help on sheet metal script

Postby -alex- » Fri Apr 26, 2019 4:55 pm

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 213 times
Attachments
Error-unfold-Z-sheet-metal-with-part-fillet.FCStd
(22.52 KiB) Downloaded 9 times
Last edited by -alex- on Fri Apr 26, 2019 10:37 pm, edited 1 time in total.