Files
modeling-app/rust/kcl-lib/tests/assembly_mixed_units_cubes/cube-mm.kcl
Jonathan Tran dc82b4c8ea Fix mixed units assemblies to work, regardless of project settings (#5818)
* Add mixed units test

* Add incorrect output

* Change to always set units since old units are not accurate

* Update output after fix
2025-03-17 15:26:56 +00:00

11 lines
286 B
Plaintext

@settings(defaultLengthUnit = mm)
sketch001 = startSketchOn('XY')
cubeMm = startProfileAt([10, 10], sketch001)
|> xLine(length = 5)
|> yLine(length = -5)
|> xLine(length = -5)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
|> extrude(%, length = 5)