Files
modeling-app/docs/kcl/hole.md
Adam Chalmers ffbe20b586 Kwargs: startProfileAt (#6424)
Previous:

```
startProfileAt([x, y], %)
startProfileAt([x, y], sketch001)
```

New:
```
startProfile(%, at = [x, y])
startProfile(sketch001, at = [x, y])
```
2025-04-25 21:01:35 +00:00

192 KiB

title, excerpt, layout
title excerpt layout
hole Use a 2-dimensional sketch to cut a hole in another 2-dimensional sketch. manual

Use a 2-dimensional sketch to cut a hole in another 2-dimensional sketch.

hole(
  holeSketch: [Sketch],
  sketch: Sketch,
): Sketch

Arguments

Name Type Description Required
holeSketch [Sketch] Yes
sketch Sketch Yes

Returns

Sketch

Examples

exampleSketch = startSketchOn(XY)
  |> startProfile(at = [0, 0])
  |> line(end = [0, 5])
  |> line(end = [5, 0])
  |> line(end = [0, -5])
  |> close()
  |> hole(circle(center = [1, 1], radius = .25), %)
  |> hole(circle(center = [1, 4], radius = .25), %)

example = extrude(exampleSketch, length = 1)

Rendered example of hole 0

fn squareHoleSketch() {
  squareSketch = startSketchOn(-XZ)
    |> startProfile(at = [-1, -1])
    |> line(end = [2, 0])
    |> line(end = [0, 2])
    |> line(end = [-2, 0])
    |> close()
  return squareSketch
}

exampleSketch = startSketchOn(-XZ)
  |> circle(center = [0, 0], radius = 3)
  |> hole(squareHoleSketch(), %)
example = extrude(exampleSketch, length = 1)

Rendered example of hole 1