|
|
@@ -8,15 +8,10 @@ cols = 6
|
|
|
row_dist = 90
|
|
|
col_dist = 176
|
|
|
|
|
|
-thickness = 10
|
|
|
-
|
|
|
-default_dist_x = 550.75
|
|
|
-default_dist_y = 208.75
|
|
|
-result_dist_x = 4.88
|
|
|
-result_dist_y = 52.85
|
|
|
+cut_depth = 10
|
|
|
|
|
|
center_x = -464.62
|
|
|
-center_y = 94.85
|
|
|
+center_y = 130
|
|
|
|
|
|
hole_diam = 2.5
|
|
|
hole_width = 160
|
|
|
@@ -26,9 +21,7 @@ duct_diam = 11
|
|
|
|
|
|
num_per_powersupply = 3
|
|
|
|
|
|
-mountingplate = cq.importers.importStep("/home/sgruen/Dokumente/mountingplate.step")
|
|
|
-
|
|
|
-# holes_dxf = cq.importers.importDXF("/home/sgruen/Dokumente/Strom_TestLader_V1.1_edit_2.dxf")
|
|
|
+mountingplate = cq.importers.importStep("/home/sgruen/Dokumente/Montageplatte/mountingplate.step")
|
|
|
|
|
|
holes = (
|
|
|
cq.Workplane(origin=(center_x,center_y,0))
|
|
|
@@ -44,7 +37,7 @@ holes = (
|
|
|
.circle(hole_diam/2)
|
|
|
.center(hole_width/2, 0)
|
|
|
.circle(hole_diam/2)
|
|
|
- .extrude(-thickness)
|
|
|
+ .extrude(-cut_depth)
|
|
|
)
|
|
|
power_supply = (
|
|
|
cq.Workplane(origin=(center_x,center_y,0))
|
|
|
@@ -52,15 +45,14 @@ power_supply = (
|
|
|
.circle(ps_diam/2)
|
|
|
.center(-152.5, 85)
|
|
|
.circle(ps_diam/2)
|
|
|
- .extrude(-thickness)
|
|
|
+ .extrude(-cut_depth)
|
|
|
)
|
|
|
duct = (
|
|
|
cq.Workplane(origin=(center_x,center_y,0))
|
|
|
.circle(duct_diam/2)
|
|
|
- .extrude(-thickness)
|
|
|
+ .extrude(-cut_depth)
|
|
|
)
|
|
|
|
|
|
-# holes_dxf = holes_dxf.translate((result_dist_x-default_dist_x, result_dist_y-default_dist_y, 0))
|
|
|
mountingplate_holes = mountingplate
|
|
|
|
|
|
for row in range(rows):
|