2025-02-28 11:52:14 -08:00
|
|
|
@settings(defaultLengthUnit = in)
|
|
|
|
// Set units in inches (in)
|
|
|
|
|
|
|
|
|
|
|
|
// Define constants
|
|
|
|
innerDiameter = 0.364
|
|
|
|
outerDiameter = 35 / 64
|
|
|
|
length = 1 + 1 / 2
|
|
|
|
|
|
|
|
// create a sketch on the 'XY' plane
|
|
|
|
sketch000 = startSketchOn('XY')
|
|
|
|
|
|
|
|
// create a profile of the outside of the pipe
|
2025-02-28 17:40:01 -08:00
|
|
|
outerProfile = circle(
|
|
|
|
sketch000,
|
2025-02-28 11:52:14 -08:00
|
|
|
center = [0.0, 0.0],
|
2025-02-28 17:40:01 -08:00
|
|
|
radius = outerDiameter / 2,
|
|
|
|
tag = $arc000,
|
|
|
|
)
|
2025-02-28 11:52:14 -08:00
|
|
|
|
|
|
|
// create a profile of the inside of the pipe
|
2025-02-28 17:40:01 -08:00
|
|
|
innerProfile = circle(
|
|
|
|
sketch000,
|
2025-02-28 11:52:14 -08:00
|
|
|
center = [0.0, 0.0],
|
2025-02-28 17:40:01 -08:00
|
|
|
radius = innerDiameter / 2,
|
|
|
|
tag = $arc001,
|
|
|
|
)
|
2025-02-28 11:52:14 -08:00
|
|
|
|
|
|
|
// create a profile with holes sketch000Profile000Holes
|
|
|
|
pipeProfile = outerProfile
|
|
|
|
|> hole(innerProfile, %)
|
|
|
|
|
|
|
|
// extrude the pipe profile to create the pipe
|
|
|
|
pipe = extrude(pipeProfile, length = length)
|