BREAKING: KCL @settings are the source of truth for units (#5808)
This commit is contained in:
4
rust/kcl-lib/e2e/executor/inputs/cylinder-inches.kcl
Normal file
4
rust/kcl-lib/e2e/executor/inputs/cylinder-inches.kcl
Normal file
@ -0,0 +1,4 @@
|
||||
@settings(defaultLengthUnit = in)
|
||||
sketch001 = startSketchOn(XZ)
|
||||
|> circle(center = [0, 0], radius = 20)
|
||||
extrude001 = extrude(sketch001, length = 10)
|
@ -1,4 +1,5 @@
|
||||
const sketch001 = startSketchOn(XZ)
|
||||
@settings(defaultLengthUnit = in)
|
||||
sketch001 = startSketchOn(XZ)
|
||||
|> startProfileAt([75.8, 317.2], %)
|
||||
|> angledLine([0, 268.43], %, $rectangleSegmentA001)
|
||||
|> angledLine([
|
||||
@ -11,8 +12,8 @@ const sketch001 = startSketchOn(XZ)
|
||||
], %, $yo)
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)], tag = $seg02)
|
||||
|> close()
|
||||
const extrude001 = extrude(sketch001, length = 100)
|
||||
const chamf = chamfer(
|
||||
extrude001 = extrude(sketch001, length = 100)
|
||||
chamf = chamfer(
|
||||
extrude001,
|
||||
length = 30,
|
||||
tags = [
|
||||
|
@ -1,4 +1,5 @@
|
||||
const sketch001 = startSketchOn(XZ)
|
||||
@settings(defaultLengthUnit = in)
|
||||
sketch001 = startSketchOn(XZ)
|
||||
|> startProfileAt([75.8, 317.2], %) // [$startCapTag, $EndCapTag]
|
||||
|> angledLine([0, 268.43], %, $rectangleSegmentA001)
|
||||
|> angledLine([
|
||||
@ -11,7 +12,7 @@ const sketch001 = startSketchOn(XZ)
|
||||
], %, $yo)
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)], tag = $seg02)
|
||||
|> close()
|
||||
const extrude001 = extrude(sketch001, length = 100)
|
||||
extrude001 = extrude(sketch001, length = 100)
|
||||
|> chamfer(
|
||||
length = 30,
|
||||
tags = [
|
||||
|
Reference in New Issue
Block a user