Files
modeling-app/docs/kcl-std/profileStart.md
Nick Cameron 1841e63021 Misc docs polishing (#6712)
* Fake modules for Rust std lib functions

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

* Include the missing @ in Rust std lib fns

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

* Move revolve and mirror2d to better modules

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

* Use docs from KCL mods for type summaries

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

* Use type docs to describe types from KCL std lib

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

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-06 16:09:59 +12:00

78 KiB

title, excerpt, layout
title excerpt layout
std::sketch::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 std::sketch::profileStart 0