This repository was archived by the owner on Jun 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServo-Cam.py
More file actions
50 lines (37 loc) · 2.72 KB
/
Servo-Cam.py
File metadata and controls
50 lines (37 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#https://help.alibre.com/articles/#!alibre-help-v28/servo-cam
majorwidth = 13.763
minorwidth = 6.260
height = 7.000
slotwidth = 3.000
baseheight = 2.000
servoheight = 4.000
servoinside = 4.200
GripperCam = Part('GripperCam')
Base = GripperCam.AddSketch('Base', GripperCam.GetPlane('XY-Plane'))
Base.AddLine([-majorwidth / 2, -height / 2], [majorwidth / 2, -height / 2], False)
Base.AddLine([-majorwidth / 2, height / 2], [majorwidth / 2, height / 2], False)
Base.AddArcCenterStartEnd( majorwidth / 2, 0, majorwidth / 2, -height / 2, majorwidth / 2, height / 2, False)
Base.AddArcCenterStartEnd(-majorwidth / 2, 0, -majorwidth / 2, height / 2, -majorwidth / 2, -height / 2, False)
Base.AddLine([minorwidth / 2, -slotwidth / 2], [majorwidth / 2, -slotwidth / 2], False)
Base.AddLine([minorwidth / 2, slotwidth / 2], [majorwidth / 2, slotwidth / 2], False)
Base.AddArcCenterStartEnd(majorwidth / 2, 0, majorwidth / 2, -slotwidth / 2, majorwidth / 2, slotwidth / 2, False)
Base.AddArcCenterStartEnd(minorwidth / 2, 0, minorwidth / 2, slotwidth / 2, minorwidth / 2, -slotwidth / 2, False)
Base.AddLine([-minorwidth / 2, -slotwidth / 2], [-majorwidth / 2, -slotwidth / 2], False)
Base.AddLine([-minorwidth / 2, slotwidth / 2], [-majorwidth / 2, slotwidth / 2], False)
Base.AddArcCenterStartEnd(-majorwidth / 2, 0, -majorwidth / 2, slotwidth / 2, -majorwidth / 2, -slotwidth / 2, False)
Base.AddArcCenterStartEnd(-minorwidth / 2, 0, -minorwidth / 2, -slotwidth / 2, -minorwidth / 2, slotwidth / 2, False)
GripperCam.AddExtrudeBoss('Base', Base, baseheight, False)
Servo = GripperCam.AddSketch('Servo', GripperCam.GetFace('Face<13>'))
Servo.AddCircle(0, 0, 9, False)
Servo.AddCircle(0, 0, servoinside, False)
GripperCam.AddExtrudeBoss('Servo', Servo, servoheight, False)
Holes = GripperCam.AddSketch('Holes', GripperCam.GetPlane('XY-Plane'))
Holes.AddLine([minorwidth / 2, -slotwidth / 2], [majorwidth / 2, -slotwidth / 2], False)
Holes.AddLine([minorwidth / 2, slotwidth / 2], [majorwidth / 2, slotwidth / 2], False)
Holes.AddArcCenterStartEnd(majorwidth / 2, 0, majorwidth / 2, -slotwidth / 2, majorwidth / 2, slotwidth / 2, False)
Holes.AddArcCenterStartEnd(minorwidth / 2, 0, minorwidth / 2, slotwidth / 2, minorwidth / 2, -slotwidth / 2, False)
Holes.AddLine([-minorwidth / 2, -slotwidth / 2], [-majorwidth / 2, -slotwidth / 2], False)
Holes.AddLine([-minorwidth / 2, slotwidth / 2], [-majorwidth / 2, slotwidth / 2], False)
Holes.AddArcCenterStartEnd(-majorwidth / 2, 0, -majorwidth / 2, slotwidth / 2, -majorwidth / 2, -slotwidth / 2, False)
Holes.AddArcCenterStartEnd(-minorwidth / 2, 0, -minorwidth / 2, -slotwidth / 2, -minorwidth / 2, slotwidth / 2, False)
GripperCam.AddExtrudeCut('Holes', Holes, baseheight + servoheight, False)