KCL (KITTYCAD LANGUAGE)SOURCE
✓ executed/*
Generated by Text-to-CAD:
A solid cylinder 30mm in diameter and 20mm tall with a coaxial through-hole 10mm in diameter.
*/
@settings(defaultLengthUnit = mm)
// Parameters
outerDiameter = 30
height = 20
holeDiameter = 10
// 2D annulus profile
annulus = startSketchOn(XY)
|> circle(center = [0, 0], diameter = outerDiameter)
|> subtract2d(tool = circle(center = [0, 0], diameter = holeDiameter))
// Extrude to make the cylinder with through-hole
part = extrude(annulus, length = height)