Files
modeling-app/docs/kcl/startSketchAt.md
Jonathan Tran b816df21d2 Deprecate startSketchAt() stdlib function (#4819)
* Deprecate startSketchAt() stdlib function

* Remove uses of startSketchAt() from the doc tests

* Update docs
2024-12-17 11:28:22 -05: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([10, 0], %)
  |> line([0, 10], %)
  |> line([-10, 0], %)
  |> close(%)

example = extrude(5, exampleSketch)

Rendered example of startSketchAt 0

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

example = extrude(5, exampleSketch)

Rendered example of startSketchAt 1

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

example = extrude(5, exampleSketch)

Rendered example of startSketchAt 2