pipe

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
Theis1977
Posts: 4
Joined: Mon Oct 05, 2020 10:33 am

pipe

Post by Theis1977 »

hi

We make pipe from plate,
Im new here and have try the sheetmetal adon, and read what i could find.
I can make a box ect and unbend. but....

Can you make a round pipe and unfold it in sheet metal ?
I have try så make a pipe and make a " cut" but i cant unfold it.

do you have any toturial ?

Best regard Theis
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: pipe

Post by jmaustpc »

Please post your version data, how to do so is explained in the forum rules link above.

Regarding your question, I don't know if round pipes can be unfolded. From what I can see in the wiki, it does not look like it can.
Theis1977 wrote: Mon Oct 05, 2020 10:44 am and read what i could find.
I assume you have already found this page in the wiki, but in case you have not here it is SheetMetal_Workbench.

This is a third party add on, it is fine to ask about it here.
User avatar
papyblaise
Veteran
Posts: 7872
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: pipe

Post by papyblaise »

you can make a tube with sheet metal and unfold it on 1 condition: make a small plate for the start and a 180 ° on each side
if you make a hole or cutout in the rounded part, it will be impossible to unfold
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: pipe

Post by DeepSOIC »

Macro Unroll Ruled Surface? Seems abandoned, but may still be functional.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: pipe

Post by jmaustpc »

DeepSOIC wrote: Mon Oct 05, 2020 2:15 pm Macro Unroll Ruled Surface? Seems abandoned, but may still be functional.
There are two in the add ons manager with similar names,

the one with under scores for spaces between the word in the name is the older one from 2013, and I believe is only Python 2 compatible
"Unroll_Ruled_Surface"


The one with no spaces between the word in the name seems to have bee updated in 2019, claiming to be Python3 compatible.
"UnrollRuledSurface"

This is the topic in our forum https://forum.freecadweb.org/viewtopic.php?f=22&t=4563, its 4 pages long, starts in 2013 and later posts in 2019.

I had a look at the two with Kdiff3, the newer one has replaced the Tabs with spaces, the first had both tabs and spaces. But there are a few other updates as well.

The macro shown in the wiki is the older/original version not the updated one.

I just tried the newer "no spaces" version and I get the following error and the macro does not run.
02:36:48 <string>(1)<class 'IndentationError'>: ('unexpected indent', ('/home/you/.FreeCAD/Macro/UnrollRuledSurface.FCMacro', 221, 5, ' v= vect.add( app.Base.Vector(0,0,0) )\n'))
02:37:03 <string>(1)<class 'IndentationError'>: ('unexpected indent', ('/home/you/.FreeCAD/Macro/UnrollRuledSurface.FCMacro', 221, 5, ' v= vect.add( app.Base.Vector(0,0,0) )\n'))



Just for completeness, of course the older one does not work for me since my system is of course Python3.
02:38:29 <string>(1)<class 'TabError'>: ('inconsistent use of tabs and spaces in indentation', ('/home/you/.FreeCAD/Macro/Unroll_Ruled_Surface.FCMacro', 96, 25, '\tif faces.__len__() > 1:\n'))


My FreeCAD 0.19 is from the daily PPA, updated yesterday.

Jim

OS: Ubuntu 18.04.5 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 7eeec7a5990cc786723225ca8de16ca3186545b3
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
User avatar
papyblaise
Veteran
Posts: 7872
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: pipe

Post by papyblaise »

You don't precise the diamatre , so here I give you a 100mm Od for exemple
An ersatz of is to use Curve Wb > Map sketch on surface = pipe1
Attachments
pipe1.PNG
pipe1.PNG (22.69 KiB) Viewed 740 times
pipe.FCStd
(19.67 KiB) Downloaded 27 times
pipe.PNG
pipe.PNG (70.61 KiB) Viewed 751 times
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: pipe

Post by jmaustpc »

jmaustpc wrote: Mon Oct 05, 2020 3:41 pm I just tried the newer "no spaces" version and I get the following error and the macro does not run.
02:36:48 <string>(1)<class 'IndentationError'>: ('unexpected indent', ('/home/you/.FreeCAD/Macro/UnrollRuledSurface.FCMacro', 221, 5, ' v= vect.add( app.Base.Vector(0,0,0) )\n'))
02:37:03 <string>(1)<class 'IndentationError'>: ('unexpected indent', ('/home/you/.FreeCAD/Macro/UnrollRuledSurface.FCMacro', 221, 5, ' v= vect.add( app.Base.Vector(0,0,0) )\n'))
I fixed those and some other obvious issues and then some others came up. I search the Internet regarding Pyside2 and I think the bugs are changes between Pyside and Pyside2.

I don't know if I did the right or best things, but I did get it to work, as far as getting the shape object output and an empty SVG. Its almost time to get up here and I have not yet been to sleep so this is where I give up for the night.

I created a default Part Cone, went to Draft WB, Draft Downgrade once to split it into its surfaces, I selected the conical face and tried both methods. With both the default generatrices from edges 0 to 3 and the generatrices from edges 1 to 4, I got an empty SVG and a Shape object (which successfully Draft Upgraded into a face)
Screenshot_20201006_043650.png
Screenshot_20201006_043650.png (13.61 KiB) Viewed 706 times
This is a screen shot of the macro dialogue.
Screenshot_20201006_043551.png
Screenshot_20201006_043551.png (29.26 KiB) Viewed 706 times
DeepSOIC wrote: Mon Oct 05, 2020 2:15 pm Seems abandoned, but may still be functional.
If you or anyone else wants to see/fix/improve this, then this is where I have go to tonight. :)

This is my modified version of the macro, zipped up.
no_spaces_unroll_Jim1.FCMacro.zip
(5.35 KiB) Downloaded 32 times
this is my diff file.
no_spaces_unroll_Jim1.zip
(5.49 KiB) Downloaded 21 times
Jim

OS: Ubuntu 18.04.5 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 7eeec7a5990cc786723225ca8de16ca3186545b3
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
Post Reply