Skip to main content

extrude()

Extrudes the last sketch with a default distance.

Returns: Extrude

tip

See the guide for detailed usage examples.

Signatures

extrude(target?: SceneObject): Extrude

Extrudes the last sketch with a default distance.

ParameterTypeDescription
targetSceneObjectThe sketch to extrude (optional)

extrude(distance: number, target?: SceneObject): Extrude

Extrudes the last sketch by a given distance.

ParameterTypeDescription
distancenumberThe extrusion distance
targetSceneObjectThe sketch to extrude (optional)

extrude(distance1: number, distance2: number): Extrude

Extrudes the last sketch between two distances.

ParameterTypeDescription
distance1numberThe first extrusion distance
distance2numberThe second extrusion distance

extrude(distance1: number, distance2: number, target: SceneObject): Extrude

Extrudes the given sketch between two distances.

ParameterTypeDescription
distance1numberThe first extrusion distance
distance2numberThe second extrusion distance
targetSceneObjectThe sketch to extrude

extrude(face: SceneObject, target?: SceneObject): Extrude

Extrudes the last sketch up to a specific face.

ParameterTypeDescription
faceSceneObjectA face selection to extrude up to
targetSceneObjectThe sketch to extrude (optional)

extrude(face: "first-face", target?: SceneObject): Extrude

Extrudes the last sketch up to the first intersecting face.

ParameterTypeDescription
face"first-face"The literal 'first-face'
targetSceneObjectThe sketch to extrude (optional)

extrude(face: "last-face", target?: SceneObject): Extrude

Extrudes the last sketch up to the last intersecting face.

ParameterTypeDescription
face"last-face"The literal 'last-face'
targetSceneObjectThe sketch to extrude (optional)