KCL: Migrate hole to kwargs (#6382)
Previously: `|> hole(circle(radius = 2, center = p), %)` Now: `|> subtract2d(tool = circle(radius = 2, center = p))`
This commit is contained in:
@ -702,7 +702,7 @@ sketch_001 = startSketchOn(XY)
|
||||
await page.keyboard.press('Enter')
|
||||
await page.keyboard.type(`extrusion = startSketchOn(XY)
|
||||
|> circle(center: [0, 0], radius: dia/2)
|
||||
|> hole(squareHole(length, width, height), %)
|
||||
|> subtract2d(tool = squareHole(length, width, height))
|
||||
|> extrude(length = height)`)
|
||||
|
||||
// error in gutter
|
||||
|
||||
@ -52,7 +52,7 @@ test.describe('Sketch tests', () => {
|
||||
|> yLine(length = height)
|
||||
|> xLine(length = -width * .5)
|
||||
|> close()
|
||||
|> hole(screwHole, %)
|
||||
|> subtract2d(tool = screwHole)
|
||||
|> extrude(length = thickness)
|
||||
|
||||
part002 = startSketchOn(-XZ)
|
||||
|
||||
Reference in New Issue
Block a user