﻿ FreeCAD: Extruding a cross-sectional shape along the curve (Sweep) - XSim

↑top

# FreeCAD: Extruding a cross-sectional shape along the curve (Sweep)

Update: February 12, 2017

In this example, I explain how to create a solid by extruding a cross-sectional shape along the curve. Following shapes can be created by this method.

1. Click [File]-[New] in menu bar and create new document.

2. Select [View]-[Workbench]-[Part Design] in menu bar to switch to Part Design workbench.

3. First we create a curve. This curve is used as pathway of extruding.

1. Create new sketch plane on XY-plane.

Creates sketch plane
2. Create two lines and an arc as shown in following figure. You can set these positions in rough because these will be adjusts in the restraint operation.

3. Connnect the three wires with Coinciden constraint.

4. Connect a center of circular arc and joint points of the wires with lines and apply Vertical constraint and Horizonal constraint to these points.

5. Select two lines forming the arc and switch them to auxiliary lines. Auxiliary lines are displayed in blue color.

6. At the end, select a end point at left lower and set it's coordinate to (0, 0) with Lock constrain. After adjusting each point's coordinate by dragging them, click at Task tab in Combo View to exit sketch editing mode.

4. Next we create cross-sectional shape to be extruded.

1. Select the document in Tree View and create new sketch plane on ZY-plane.

Creates sketch plane
2. Create a circle as shown in following figure. You can set positions in rough because these will be adjusts in the restraint operation.

3. Select a center of the circle and set it's coordinate to (0, 0) with Lock constrain.

4. Select the circle and apply Radius constraint. In this example, we set radius to 5. After that, click at Task tab in Combo View to exit sketch editing mode.

5. Following figure shows the two sketches that has been created above steps.

6. Select [View]-[Workbench]-[Part] in menu bar to switch to Part workbench. In the workbench, Select Sweep.

7. At first, select a cross-sectional shape (Sketch001) and click to set the cross-sectional shape as sweep-target.

8. Then click and select a pathway of extruding in 3D View. If you want to select more than one line, select lines with pressing Ctrl key. Click to finish selecting.

9. After selecting the pathway, check at bottom left of the dialog and click on Sweep dialog to create a solid by sweeping.

Any cross-sectional shape can be extruded along the curve with this sweep method. In following figure, a regular pentagon has been extruded along with a spiral that has been created with Creating primitives in Part workbench.

You can sweep while changing the cross-sectional shape (It is usualy called "Sweep Blend") by using multiple cross-sectional shapes.

If a pathway of extruding has branching, the pathway cannot be extruded one sweep operation. So sweep each pathway and connect the two solids by a boolean operation.