Files
modeling-app/public/kcl-samples/walkie-talkie/knob.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

20 lines
607 B
Plaintext

// Walkie Talkie Frequency Knob
// The frequency knob for the walkie talkie assembly
// Set units
@settings(defaultLengthUnit = in)
// Import parameters
import width, thickness, height, knobDiameter, knobHeight, knobRadius from "parameters.kcl"
// Create the knob sketch and revolve
startSketchOn(XZ)
|> startProfile(at = [0.0001, 0])
|> xLine(length = knobDiameter / 2)
|> yLine(length = knobHeight - 0.05)
|> arc(angleStart = 0, angleEnd = 90, radius = .05)
|> xLine(endAbsolute = 0.0001)
|> close()
|> revolve(axis = Y)
|> appearance(color = '#D0FF01', metalness = 90, roughness = 50)