Files
modeling-app/docs/kcl-std/functions/std-sketch-profileStart.md
Nick Cameron 4d1524f03b Format examples in docs (#7378)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-06-05 18:01:45 -04: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): Point2d

Arguments

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

Returns

Point2d - A point in two dimensional space.

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