Files
modeling-app/docs/kcl/profileStart.md
Nick Cameron 6866c9d418 Fix bad links in docs code blocks (#6649)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-02 16:00:27 +12:00

78 KiB

title, excerpt, layout
title excerpt layout
profileStart 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 = 120, length = 50, tag = $seg01)
  |> angledLine(angle = segAng(seg01) + 120, length = 50)
  |> line(end = profileStart(%))
  |> close()
  |> extrude(length = 20)

Rendered example of profileStart 0