Files
modeling-app/docs/kcl-std/functions/std-sketch-profileStart.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

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) + 120deg, length = 50)
  |> line(end = profileStart(%))
  |> close()
  |> extrude(length = 20)

Rendered example of profileStart 0