* 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>
		
			
				
	
	
		
			27 lines
		
	
	
		
			685 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			685 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
// 98017A257 Washer
 | 
						|
 | 
						|
// import constants
 | 
						|
import washerInnerDia, washerOuterDia, washerThickness from "globals.kcl"
 | 
						|
 | 
						|
// set units
 | 
						|
@settings(defaultLengthUnit = in)
 | 
						|
 | 
						|
// create a function to make the washer
 | 
						|
export fn washer() {
 | 
						|
 | 
						|
  // create the base of the washer
 | 
						|
  washerBase = startSketchOn('XY')
 | 
						|
    |> circle(center = [0, 0], radius = washerOuterDia / 2)
 | 
						|
    |> extrude(length = washerThickness)
 | 
						|
 | 
						|
  // extrude a hole through the washer
 | 
						|
  washer = startSketchOn(washerBase, 'end')
 | 
						|
    |> circle(center = [0, 0], radius = washerInnerDia / 2)
 | 
						|
    |> extrude(%, length = -washerThickness)
 | 
						|
    |> appearance(%, color = "#ee4f4f")
 | 
						|
 | 
						|
  return washer
 | 
						|
}
 | 
						|
 | 
						|
// https://www.mcmaster.com/98017A257/
 |