update all kcl-samples w/ format (#5999)
This commit is contained in:
		@ -1,10 +1,8 @@
 | 
			
		||||
// J2 Axis for Robot Arm
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// Set Units
 | 
			
		||||
@settings(defaultLengthUnit = in)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import axisJ1, axisJ2, axisJ2ArmWidth, axisJ2ArmLength, axisJ2ArmThickness, plane003 from "globals.kcl"
 | 
			
		||||
 | 
			
		||||
// Create Body of J2 Robot Arm
 | 
			
		||||
@ -35,24 +33,19 @@ sketch012 = startSketchOn(extrude011, 'START')
 | 
			
		||||
  |> circle(center = [-1.75, 8], radius = 1.9, tag = $referenceEdge4)
 | 
			
		||||
 | 
			
		||||
extrude012 = extrude(sketch012, length = 0.15)
 | 
			
		||||
  |> fillet(
 | 
			
		||||
       radius = 0.1,
 | 
			
		||||
       tags = [getOppositeEdge(referenceEdge4)]
 | 
			
		||||
     )
 | 
			
		||||
  |> fillet(radius = 0.1, tags = [getOppositeEdge(referenceEdge4)])
 | 
			
		||||
sketch013 = startSketchOn(extrude011, 'START')
 | 
			
		||||
  |> circle(
 | 
			
		||||
     center = [
 | 
			
		||||
       center = [
 | 
			
		||||
         -1.75 - (axisJ2ArmLength * cos(toRadians(axisJ2))),
 | 
			
		||||
         8 + axisJ2ArmLength * sin(toRadians(axisJ2))
 | 
			
		||||
       ],
 | 
			
		||||
     radius = 1.9,
 | 
			
		||||
     tag = $referenceEdge5)
 | 
			
		||||
       radius = 1.9,
 | 
			
		||||
       tag = $referenceEdge5,
 | 
			
		||||
     )
 | 
			
		||||
 | 
			
		||||
extrude013 = extrude(sketch013, length = 1)
 | 
			
		||||
  |> fillet(
 | 
			
		||||
       radius = 0.1,
 | 
			
		||||
       tags = [getOppositeEdge(referenceEdge5)]
 | 
			
		||||
     )
 | 
			
		||||
  |> fillet(radius = 0.1, tags = [getOppositeEdge(referenceEdge5)])
 | 
			
		||||
 | 
			
		||||
// Draw Bolt Patterns on J2 Robot Arm
 | 
			
		||||
sketch014 = startSketchOn(extrude012, 'END')
 | 
			
		||||
@ -61,7 +54,7 @@ sketch014 = startSketchOn(extrude012, 'END')
 | 
			
		||||
       center = [-1.75, 8],
 | 
			
		||||
       instances = 8,
 | 
			
		||||
       arcDegrees = 360,
 | 
			
		||||
       rotateDuplicates = true
 | 
			
		||||
       rotateDuplicates = true,
 | 
			
		||||
     )
 | 
			
		||||
 | 
			
		||||
extrude014 = extrude(sketch014, length = 0.15)
 | 
			
		||||
@ -72,7 +65,7 @@ sketch015 = startSketchOn(extrude013, 'END')
 | 
			
		||||
         -1.75 - ((axisJ2ArmLength - 1) * cos(toRadians(axisJ2))),
 | 
			
		||||
         8 + (axisJ2ArmLength - 1.5) * sin(toRadians(axisJ2))
 | 
			
		||||
       ],
 | 
			
		||||
       radius = 0.2
 | 
			
		||||
       radius = 0.2,
 | 
			
		||||
     )
 | 
			
		||||
  |> patternCircular2d(
 | 
			
		||||
       center = [
 | 
			
		||||
@ -81,7 +74,7 @@ sketch015 = startSketchOn(extrude013, 'END')
 | 
			
		||||
       ],
 | 
			
		||||
       instances = 4,
 | 
			
		||||
       arcDegrees = 360,
 | 
			
		||||
       rotateDuplicates = true
 | 
			
		||||
       rotateDuplicates = true,
 | 
			
		||||
     )
 | 
			
		||||
 | 
			
		||||
extrude015 = extrude(sketch015, length = 0.15)
 | 
			
		||||
@ -92,7 +85,7 @@ sketch016 = startSketchOn(extrude011, 'END')
 | 
			
		||||
         1.75 + axisJ2ArmLength * cos(toRadians(axisJ2)),
 | 
			
		||||
         8 + axisJ2ArmLength * sin(toRadians(axisJ2))
 | 
			
		||||
       ],
 | 
			
		||||
       radius = 0.3
 | 
			
		||||
       radius = 0.3,
 | 
			
		||||
     )
 | 
			
		||||
 | 
			
		||||
extrude(sketch016, length = 1)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user