Files
modeling-app/docs/kcl-std/profileStartX.md
Nick Cameron 0621e1a53e Docs content (#6792)
* Add documentation to modules, and some constants and types

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

* Improve the language reference

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

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-11 19:32:33 +12:00

51 KiB

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

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

profileStartX(@profile: Sketch): number

Arguments

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

Returns

number - A number.

Examples

sketch001 = startSketchOn(XY)
  |> startProfile(at = [5, 2])
  |> angledLine(angle = -26.6, length = 50)
  |> angledLine(angle = 90, length = 50)
  |> angledLine(angle = 30, endAbsoluteX = profileStartX(%))

Rendered example of profileStartX 0