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:
@ -118,7 +118,7 @@ fn magnetBase(plane) {
|
||||
|> yLine(length = binLength, tag = $line002)
|
||||
|> xLine(endAbsolute = profileStartX(%), tag = $line003)
|
||||
|> close(tag = $line004)
|
||||
|> hole(magnetCenterCutout(plane), %)
|
||||
|> subtract2d(tool = magnetCenterCutout(plane))
|
||||
return magnetBaseSketch
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ magnetsSketch = startSketchOn(XY)
|
||||
|
||||
// Create a profile with holes for the magnets
|
||||
magnetProfile = magnetBase(XY)
|
||||
|> hole(magnetsSketch, %)
|
||||
|> subtract2d(tool = magnetsSketch)
|
||||
|
||||
// Create an extrusion of the magnet cutout with holes
|
||||
magnetHolesExtrude = extrude(magnetProfile, length = -magDepth)
|
||||
|
||||
Reference in New Issue
Block a user