-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathbaseGeneratorInput.py
More file actions
119 lines (91 loc) · 3.45 KB
/
Copy pathbaseGeneratorInput.py
File metadata and controls
119 lines (91 loc) · 3.45 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import adsk.core, adsk.fusion, traceback
from .const import DIMENSION_MAGNET_CUTOUT_DEPTH, DIMENSION_MAGNET_CUTOUT_DIAMETER, DIMENSION_SCREW_HOLE_DIAMETER, DIMENSION_MAGNET_CUTOUT_CHAMFER_XY, DIMENSION_MAGNET_CUTOUT_CHAMFER_Z, BIN_CORNER_FILLET_RADIUS
class BaseGeneratorInput():
def __init__(self):
self.hasMagnetCutouts = False
self.hasScrewHoles = False
self.hasBottomChamfer = True
self.screwHolesDiameter = DIMENSION_SCREW_HOLE_DIAMETER
self.magnetCutoutsDiameter = DIMENSION_MAGNET_CUTOUT_DIAMETER
self.magnetCutoutsDepth = DIMENSION_MAGNET_CUTOUT_DEPTH
self.magnetCutoutsChamferXY = DIMENSION_MAGNET_CUTOUT_CHAMFER_XY
self.magnetCutoutsChamferZ = DIMENSION_MAGNET_CUTOUT_CHAMFER_Z
self.cornerFilletRadius = BIN_CORNER_FILLET_RADIUS
@property
def originPoint(self) -> adsk.core.Point3D:
return self._originPoint
@originPoint.setter
def originPoint(self, value: adsk.core.Point3D):
self._originPoint = value
@property
def baseWidth(self) -> float:
return self._baseWidth
@baseWidth.setter
def baseWidth(self, value: float):
self._baseWidth = value
@property
def baseLength(self) -> float:
return self._baseLength
@baseLength.setter
def baseLength(self, value: float):
self._baseLength = value
@property
def cornerFilletRadius(self) -> float:
return self._cornerFilletRadius
@cornerFilletRadius.setter
def cornerFilletRadius(self, value: float):
self._cornerFilletRadius = value
@property
def xyClearance(self) -> float:
return self._xyTolerance
@xyClearance.setter
def xyClearance(self, value: float):
self._xyTolerance = value
@property
def hasBottomChamfer(self) -> bool:
return self._hasBottomChamfer
@hasBottomChamfer.setter
def hasBottomChamfer(self, value: bool):
self._hasBottomChamfer = value
@property
def hasScrewHoles(self) -> bool:
return self._hasScrewHoles
@hasScrewHoles.setter
def hasScrewHoles(self, value: bool):
self._hasScrewHoles = value
@property
def screwHolesDiameter(self) -> float:
return self._screwHolesDiameter
@screwHolesDiameter.setter
def screwHolesDiameter(self, value: float):
self._screwHolesDiameter = value
@property
def hasMagnetCutouts(self) -> bool:
return self._hasMagnetCutouts
@hasMagnetCutouts.setter
def hasMagnetCutouts(self, value: bool):
self._hasMagnetCutouts = value
@property
def magnetCutoutsDiameter(self) -> float:
return self._magnetCutoutsDiameter
@magnetCutoutsDiameter.setter
def magnetCutoutsDiameter(self, value: float):
self._magnetCutoutsDiameter = value
@property
def magnetCutoutsDepth(self) -> float:
return self._magnetCutoutsDepth
@magnetCutoutsDepth.setter
def magnetCutoutsDepth(self, value: float):
self._magnetCutoutsDepth = value
@property
def magnetCutoutsChamferXY(self) -> float:
return self._magnetCutoutsChamferXY
@magnetCutoutsChamferXY.setter
def magnetCutoutsChamferXY(self, value: float):
self._magnetCutoutsChamferXY = value
@property
def magnetCutoutsChamferZ(self) -> float:
return self._magnetCutoutsChamferZ
@magnetCutoutsChamferZ.setter
def magnetCutoutsChamferZ(self, value: float):
self._magnetCutoutsChamferZ = value