Extrude lenght relative

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!
alex::freecad
Posts: 115
Joined: Fri Aug 29, 2014 1:25 pm

Extrude lenght relative

Post by alex::freecad »

Hi,

is it possible to extrude a sketch in Part workbench relative to anything?
I try to keep everything as parametric as possible.
I have a 'basic' solid on which I can put the sketches and 2d construct relative to this basis.
Now I would like to extrude the sketch let's say to a given face of that basic solid.

The idea is:
changig dimensions of the basic solid (already) gives automatic adaption of the sketches and (desired) the extrusion lengths.

Thx
Alex


OS: Debian GNU/Linux 7.6 (wheezy)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.3967 (Git)
Branch: master
Hash: cef2c1bc8c0f342b86acec1704e8259c4948462a
Python version: 2.7.3
Qt version: 4.8.2
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.2
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Extrude lenght relative

Post by wmayer »

No directly. You have to use a spreadsheet and control the parameters with that. Inside the spreadsheet you can use complex expressions.
For an example look here: http://www.freecadweb.org/tracker/view.php?id=1703
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Extrude lenght relative

Post by NormandC »

alex::freecad wrote:I have a 'basic' solid on which I can put the sketches and 2d construct relative to this basis.
Now I would like to extrude the sketch let's say to a given face of that basic solid.
If you map a sketch on your basic solid, any PartDesign feature applied to the sketch will be fused to the basic solid.

Since the PartDesign feature is based on this "basic solid", you can extrude your Pad by choosing "Up to face" option.
alex::freecad
Posts: 115
Joined: Fri Aug 29, 2014 1:25 pm

Re: Extrude lenght relative

Post by alex::freecad »

If you map a sketch on your basic solid, any PartDesign feature applied to the sketch will be fused to the basic solid.
Since the PartDesign feature is based on this "basic solid", you can extrude your Pad by choosing "Up to face" option.
I tried this before, it is not working. I can not pad to face (the faces of the basic solid are not selectable.
spreadsheet
Oh, this is what I need! I read somewhere that the feature is planned, but not finished, and I overlooked it in the workbench drop down.
Thank you for opening my eyse!

Alex
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Extrude lenght relative

Post by NormandC »

alex::freecad wrote:I tried this before, it is not working. I can not pad to face (the faces of the basic solid are not selectable.
Then this is a bug and it should be reported.

viewtopic.php?f=3&t=5236
alex::freecad
Posts: 115
Joined: Fri Aug 29, 2014 1:25 pm

Re: Extrude lenght relative

Post by alex::freecad »

Just to be sure before reporing a misuse as bug:

- I start a new project
- In the part workbench I add a cube, select one face
- switch to sketcher hit 'create new sketch'
- in there, I add a circle
- switch to part design
- select the sketch and choose pad
- change option to 'up to face'
- now i'm not able so click-select a face of the cube

how is the intended way to select a face?
sketch5.png
sketch5.png (11.01 KiB) Viewed 2165 times
Attachments
sketch_pad.fcstd
(6.1 KiB) Downloaded 32 times
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Extrude lenght relative

Post by NormandC »

Have you clicked on the "Face" button to select the face? It works on your example.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Extrude lenght relative

Post by NormandC »

Okay,

I think I have found a case where the "Up to face" option is not working when it should. I will post back with an example file.
alex::freecad
Posts: 115
Joined: Fri Aug 29, 2014 1:25 pm

Re: Extrude lenght relative

Post by alex::freecad »

yes, i tried to click the 'face' button first, but that changes nothing (for me)
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Extrude lenght relative

Post by bejant »

When I try to Pad "Up to Face", and click the Face button, I'm unable to select a face in the 3D view.
Typing the face name into the Face field allows Pad "Up to Face" to work successfully.

OS: Ubuntu 12.04.5 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.15.3967 (Git)
Branch: master
Hash: cef2c1bc8c0f342b86acec1704e8259c4948462a
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.7.0

The last Pad in the attached file was done that way:
Attachments
20140831a_UpToFace.fcstd
(24.78 KiB) Downloaded 38 times
Post Reply