Files
modeling-app/docs/kcl-std/functions/std-sketch-profileStartY.md
Nick Cameron df6c81b0b4 Units bug fix with modulo (#7446)
* Add degrees annotations to examples

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Fix a units bug with the modulo operation

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-06-12 08:44:55 +12:00

38 KiB

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

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

profileStartY(@profile: Sketch): number(Length)

Arguments

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

Returns

number(Length) - A number.

Examples

sketch001 = startSketchOn(XY)
  |> startProfile(at = [5, 2])
  |> angledLine(angle = -60deg, length = 14)
  |> angledLine(angle = 30deg, endAbsoluteY = profileStartY(%))

Rendered example of profileStartY 0