Files
modeling-app/docs/kcl-std/profileStart.md
Nick Cameron 7b7d587141 tests fixups
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-16 12:51:08 +12:00

78 KiB

title, subtitle, excerpt, layout
title subtitle excerpt layout
profileStart Function in std::sketch Extract the provided 2-dimensional sketch's profile's origin value. manual

Extract the provided 2-dimensional sketch's profile's origin value.

profileStart(@profile: Sketch): [number]

Arguments

Name Type Description Required
profile Sketch Profile whose start is being used Yes

Returns

[number]

Examples

sketch001 = startSketchOn(XY)
  |> startProfile(at = [5, 2])
  |> angledLine(angle = 120deg, length = 50, tag = $seg01)
  |> angledLine(angle = segAng(seg01) + 120deg, length = 50)
  |> line(end = profileStart(%))
  |> close()
  |> extrude(length = 20)

Rendered example of profileStart 0