Files
modeling-app/docs/kcl/startSketchAt.md
2025-01-27 08:56:36 +13:00

331 KiB

title, excerpt, layout
title excerpt layout
startSketchAt Start a new 2-dimensional sketch at a given point on the 'XY' plane. manual

WARNING: This function is deprecated.

Start a new 2-dimensional sketch at a given point on the 'XY' plane.

startSketchAt(data: [number]) -> Sketch

Arguments

Name Type Description Required
data [number] Yes

Returns

Sketch - A sketch is a collection of paths.

Examples

exampleSketch = startSketchAt([0, 0])
  |> line(end = [10, 0])
  |> line(end = [0, 10])
  |> line(end = [-10, 0])
  |> close()

example = extrude(exampleSketch, length = 5)

Rendered example of startSketchAt 0

exampleSketch = startSketchAt([10, 10])
  |> line(end = [10, 0])
  |> line(end = [0, 10])
  |> line(end = [-10, 0])
  |> close()

example = extrude(exampleSketch, length = 5)

Rendered example of startSketchAt 1

exampleSketch = startSketchAt([-10, 23])
  |> line(end = [10, 0])
  |> line(end = [0, 10])
  |> line(end = [-10, 0])
  |> close()

example = extrude(exampleSketch, length = 5)

Rendered example of startSketchAt 2