Files
modeling-app/rust/kcl-python-bindings/files/box_with_linter_errors.kcl
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

14 lines
378 B
Plaintext

// A 25x25x50 box
const box_width = 25
const box_depth = 25
const box_height = 50
const box_sketch = startSketchOn('XY')
|> startProfile(at = [0, 0])
|> xLine(length = box_width, tag = $line1)
|> yLine(length = box_depth, tag = $line2)
|> xLine(endAbsolute = profileStartX(%), tag = $line3)
|> close(%, $line4)
const box3D = extrude(box_sketch, length = box_height)