---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing function_sketch_with_position.kcl
---
fn box(p, h, l, w) {
  myBox = startSketchOn(XY)
    |> startProfile(at = p)
    |> line(end = [0, l])
    |> line(end = [w, 0])
    |> line(end = [0, -l])
    |> close(%)
    |> extrude(length = h)

  return myBox
}

thing = box(
  p = [0, 0],
  h = 3,
  l = 6,
  w = 10,
)
