2025-03-19 23:49:06 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								// 98017A257 Washer
							 | 
						
					
						
							
								
									
										
										
										
											2025-04-04 11:03:13 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// Washer for the screws in the pipe flange assembly.
							 | 
						
					
						
							
								
									
										
										
										
											2025-03-19 23:49:06 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2025-04-04 11:03:13 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// Set units
							 | 
						
					
						
							
								
									
										
										
										
											2025-05-06 08:44:03 +12:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								@settings(defaultLengthUnit = in, kclVersion = 1.0)
							 | 
						
					
						
							
								
									
										
										
										
											2025-03-19 23:49:06 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2025-04-04 11:03:13 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// Import parameters
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								import washerInnerDia, washerOuterDia, washerThickness from "parameters.kcl"
							 | 
						
					
						
							
								
									
										
										
										
											2025-03-26 08:53:34 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2025-04-04 12:55:21 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// Create a function to make the washer. Must be a function since multiple washers are used.
							 | 
						
					
						
							
								
									
										
										
										
											2025-03-19 23:49:06 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								export fn washer() {
							 | 
						
					
						
							
								
									
										
										
										
											2025-04-04 11:03:13 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  // Create the base of the washer
							 | 
						
					
						
							
								
									
										
										
										
											2025-03-26 08:53:34 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  washerBase = startSketchOn(XY)
							 | 
						
					
						
							
								
									
										
										
										
											2025-03-19 23:49:06 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    |> circle(center = [0, 0], radius = washerOuterDia / 2)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    |> extrude(length = washerThickness)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2025-04-04 11:03:13 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  // Extrude a hole through the washer
							 | 
						
					
						
							
								
									
										
										
										
											2025-04-14 05:58:19 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  washer = startSketchOn(washerBase, face = END)
							 | 
						
					
						
							
								
									
										
										
										
											2025-03-19 23:49:06 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    |> circle(center = [0, 0], radius = washerInnerDia / 2)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    |> extrude(%, length = -washerThickness)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    |> appearance(%, color = "#ee4f4f")
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  return washer
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |