* update pipe flange assy and small change to walkie talkie * update header in globals.kcl * Update kcl-samples simulation test output * Update kcl-samples simulation test output * Update output after merge --------- Co-authored-by: jgomez720 <114548659+jgomez720@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
26 lines
669 B
Plaintext
26 lines
669 B
Plaintext
// 1120t74 Pipe
|
|
|
|
// import constants
|
|
import pipeInnerDiameter, pipeOuterDiameter, pipeLength from "globals.kcl"
|
|
|
|
// set units
|
|
@settings(defaultLengthUnit = in)
|
|
|
|
// create a function to make the pipe
|
|
export fn pipe() {
|
|
|
|
// create the pipe base
|
|
pipeBase = startSketchOn('XZ')
|
|
|> circle(%, center = [0, 0], radius = pipeOuterDiameter / 2)
|
|
|> extrude(%, length = pipeLength)
|
|
|
|
// extrude a hole through the length of the pipe
|
|
pipe = startSketchOn(pipeBase, 'end')
|
|
|> circle(center = [0, 0], radius = pipeInnerDiameter / 2)
|
|
|> extrude(%, length = -pipeLength)
|
|
|> appearance(color = "#a24ed0")
|
|
return pipe
|
|
}
|
|
|
|
// https://www.mcmaster.com/1120T74/
|