Skip to content

Commit 90e45cc

Browse files
committed
Fix KCL for keyword migration
1 parent 2cfa9f8 commit 90e45cc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

rust/kcl-lib/tests/fillet_error_switch_files/main.kcl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ upperBlock = {
1919
}
2020
elevate = { h = 5 }
2121

22-
blockSz = max(upperBlock.h, lowerBlock.h)
22+
blockSz = max([upperBlock.h, lowerBlock.h])
2323

2424
slot = { l = 10, h = 1 }
2525

2626
sketch001 = startSketchOn(XZ)
27-
|> startProfileAt([0, 0], %)
27+
|> startProfile(at = [0, 0])
2828
|> yLine(length = blockSz, tag = $edgeA)
2929
|> xLine(length = blockSz, tag = $edgeB)
3030
|> yLine(length = -blockSz, tag = $edgeC)
@@ -37,14 +37,14 @@ sketch001 = startSketchOn(XZ)
3737
|> xLine(length = -(upperBlock.l - blockSz), tag = $edge7)
3838
|> line(endAbsolute = [profileStartX(%), profileStartY(%)], tag = $seg01)
3939
|> close(%)
40-
|> hole(circle(center = [blockSz / 2, blockSz / 2], radius = upperBlockTransHole.r), %)
41-
|> hole(circle(
40+
|> subtract2d(tool = circle(center = [blockSz / 2, blockSz / 2], radius = upperBlockTransHole.r))
41+
|> subtract2d(tool = circle(
4242
center = [
4343
upperBlock.l + lowerBlock.l - blockSz - lowerBlockTransHole.r - tubeClr,
4444
-(blockSz + elevate.h + blockSz / 2)
4545
],
4646
radius = lowerBlockTransHole.r,
47-
), %)
47+
))
4848
rad = 3
4949

5050
extrude001 = extrude(sketch001, length = blockSz)
@@ -64,8 +64,8 @@ extrude001 = extrude(sketch001, length = blockSz)
6464
],
6565
)
6666

67-
sketch002 = startSketchOn(extrude001, seg01)
68-
|> startProfileAt([0, 0], %)
67+
sketch002 = startSketchOn(extrude001, face = seg01)
68+
|> startProfile(at = [0, 0])
6969
|> circle(center = [blockSz / 2, -blockSz / 2], radius = upperBlockLongHole.r)
7070
|> extrude(length = -upperBlock.l)
7171

rust/kcl-lib/tests/fillet_error_switch_files/switch_protector.kcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ baseH = 1
1313
coneH = totalH - baseH
1414

1515
sketch001 = startSketchOn(XZ)
16-
|> startProfileAt([bottomInnerR, 0], %)
16+
|> startProfile(at = [bottomInnerR, 0])
1717
|> xLine(endAbsolute = bottomOuterR)
1818
|> yLine(length = baseH)
1919
|> line(end = [-(bottomOuterR - topOuterR), coneH])
2020
|> line(end = [-(topOuterR - topInnerR), 0])
21-
|> close(%)
21+
|> close()
2222
|> revolve(axis = Y)
2323

2424

0 commit comments

Comments
 (0)