Create a 3D surface or solid by sweeping a sketch along a path.
This, like extrude, is able to create a 3-dimensional surface or solid from a 2-dimensional sketch. However, unlike extrude, this creates a body by using the extent of the sketch as its path. This is useful for creating more complex shapes that can't be created with a simple extrusion.
You can provide more than one sketch to sweep, and they will all be swept along the same path.
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
sketches | [Sketch or Face or TaggedFace or Segment; 1+] | The sketch or set of sketches that should be swept in space. | Yes |
path | Sketch or Helix or [Segment; 1+] | The path to sweep the sketch along. | Yes |
sectional | bool | If true, the sweep will be broken up into sub-sweeps (extrusions, revolves, sweeps) based on the trajectory path components. | No |
tolerance | number(Length) | Defines the smallest distance below which two entities are considered coincident, intersecting, coplanar, or similar. For most use cases, it should not be changed from its default value of 10^-7 millimeters. | No |
relativeTo | string | Deprecated. Use 'translateProfileToPath' and 'orientProfilePerpendicular' instead. What is the sweep relative to? Can be either 'sketchPlane' or 'trajectoryCurve'. | No |
translateProfileToPath | bool | If true, the profile being swept will be moved to the path being swept along, before the sweep starts. If false, the profile stays where it is, and the sweep starts from there. Defaults to false. | No |
orientProfilePerpendicular | bool | If true, before the sweep starts, the profile will be re-oriented so that it is perpendicular to the path being swept along. If false, the profile is left in its current orientation. Defaults to false. | No |
tagStart | TagDecl | A named tag for the face at the start of the sweep, i.e. the original sketch. | No |
tagEnd | TagDecl | A named tag for the face at the end of the sweep. | No |
bodyType | string | What type of body to produce (solid or surface). Defaults to "solid". | No |
version | number(_) | What version of the sweeping algorithm to use (leave unspecified or use 0 to use the default algorithm). | No |
Returns
[Solid; 1+]