Line 1... |
Line 1... |
1 |
use <configuration/celicko.scad> |
1 |
use <configuration/sloupek.scad> |
2 |
use <configuration/sloupek.scad> |
2 |
use <configuration/plbase.scad> |
3 |
use <configuration/lista.scad> |
3 |
use <configuration/bocnice.scad> |
4 |
use <configuration/plbase.scad> |
4 |
use <configuration/otvory.scad> |
5 |
use <uravena_celicka.scad> |
5 |
use <configuration/text/Write.scad> |
6 |
use <configuration/otvory.scad> |
6 |
use <upravena_bocnice.scad> |
7 |
use <configuration/text/Write.scad> |
7 |
|
8 |
|
8 |
include <configuration/manufactury_conf.scad> |
9 |
|
9 |
include <configuration.scad> |
10 |
include <configuration/manufactury_conf.scad> |
10 |
include <configuration/otvory_conf.scad> |
11 |
include <configuration.scad> |
11 |
|
12 |
include <configuration/otvory_conf.scad> |
12 |
|
13 |
|
13 |
barva_sloupku = "cyan"; |
14 |
|
14 |
barva_listy = "red"; |
15 |
barva_sloupku = "cyan"; |
15 |
barva_celicka = "green"; |
16 |
barva_listy = "red"; |
16 |
barva_plbase = "yellow"; |
17 |
barva_celicka = "green"; |
17 |
|
18 |
barva_plbase = "yellow"; |
18 |
//translate([0.5*10.16,-5.08,14]) |
19 |
|
19 |
// cube([10.16,10.16,10.16]); |
20 |
//SLOUPKY |
20 |
|
21 |
//------------------------------------------------------------ |
21 |
|
22 |
//sloupek 1 |
22 |
//BOCNICE SE DNEM |
23 |
color(barva_sloupku) |
23 |
//------------------------------------------------------------- |
24 |
translate([(-(pocet_der2+2)*vzdalenost_der)/2,0,0]) |
24 |
upravena_bocnice(); |
25 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
25 |
|
26 |
logo_vyska,logo_sirka); |
26 |
|
27 |
|
27 |
|
28 |
//sloupek 2 |
28 |
|
29 |
color(barva_sloupku) |
29 |
|
30 |
translate([((pocet_der2+2)*vzdalenost_der)/2,0,0]) |
30 |
//PLBASE HORNI |
31 |
rotate(a=[0,0,90]) |
31 |
//------------------------------------------------------------- |
32 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
32 |
|
33 |
logo_vyska,logo_sirka); |
33 |
|
34 |
|
34 |
|
35 |
//sloupek 3 |
35 |
translate([plbase_tolerance_horni-0.2,+plbase_tolerance_horni-0.2,vyska_bocnice/2-tloustka_plbase/2]) |
36 |
color(barva_sloupku) |
36 |
rotate(a=[0,0,0]) |
37 |
translate([((pocet_der2+2)*vzdalenost_der)/2, (pocet_der1+2)*vzdalenost_der,0]) |
37 |
{ |
38 |
rotate(a=[0,0,180]) |
38 |
|
39 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
39 |
|
40 |
logo_vyska,logo_sirka); |
40 |
//plbase_vrchni_kryt(pocet_der1+2,pocet_der2+2,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,plbase_tolerance_horni); |
41 |
|
41 |
|
42 |
//sloupek 4 |
42 |
plbase_vrchni_kryt_pro_odecet(pocet_der1-1,pocet_der2-1,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_bocnice,prekryti_der,tloustka_bocnice,-0.2,tloustka_plbase); |
43 |
color(barva_sloupku) |
43 |
} |
44 |
translate([-((pocet_der2+2)*vzdalenost_der)/2, (pocet_der1+2)*vzdalenost_der,0]) |
44 |
|
45 |
rotate(a=[0,0,270]) |
45 |
|
46 |
sloupek (vyska,zapust1,vzdalenost_der,vzdalenost_od_okraje,vzdalenost_od_diry,radidus_hrany,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu, |
46 |
|
47 |
logo_vyska,logo_sirka); |
47 |
|
48 |
|
48 |
|
49 |
|
49 |
|
50 |
|
50 |
|
51 |
//VELKE LISTY |
51 |
|
52 |
//-------------------------------------------------------- |
52 |
|
53 |
//lista velka 1 |
53 |
|
54 |
color(barva_listy) |
- |
|
55 |
translate([0,-(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),-vyska/2]) |
- |
|
56 |
rotate(a=[0,0,0]) |
- |
|
57 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
58 |
|
- |
|
59 |
//lista velka 2 |
- |
|
60 |
color(barva_listy) |
- |
|
61 |
translate([0,-(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),vyska/2]) |
- |
|
62 |
rotate(a=[180,0,180]) |
- |
|
63 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
64 |
|
- |
|
65 |
//lista velka 3 |
- |
|
66 |
color(barva_listy) |
- |
|
67 |
translate([0,((pocet_der1+2)*vzdalenost_der)+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),vyska/2]) |
- |
|
68 |
rotate(a=[180,0,0]) |
- |
|
69 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
70 |
|
- |
|
71 |
//lista velka 4 |
- |
|
72 |
color(barva_listy) |
- |
|
73 |
translate([0,((pocet_der1+2)*vzdalenost_der)+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),-vyska/2]) |
- |
|
74 |
rotate(a=[0,0,180]) |
- |
|
75 |
lista (vzdalenost_der,pocet_der2,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
76 |
|
- |
|
77 |
|
- |
|
78 |
|
- |
|
79 |
//LISTY MALE |
- |
|
80 |
//--------------------------------------------------------- |
- |
|
81 |
//lista mala 1 |
- |
|
82 |
color(barva_listy) |
- |
|
83 |
translate([((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),((pocet_der1+2)*vzdalenost_der)/2,-vyska/2]) |
- |
|
84 |
rotate(a=[0,0,90]) |
- |
|
85 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
86 |
|
- |
|
87 |
//lista mala 2 |
- |
|
88 |
color(barva_listy) |
- |
|
89 |
translate([((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry),((pocet_der1+2)*vzdalenost_der)/2,vyska/2]) |
- |
|
90 |
rotate(a=[0,180,90]) |
- |
|
91 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
92 |
|
- |
|
93 |
//lista mala 3 |
- |
|
94 |
color(barva_listy) |
- |
|
95 |
translate([-(((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)),((pocet_der1+2)*vzdalenost_der)/2,vyska/2]) |
- |
|
96 |
rotate(a=[0,180,270]) |
- |
|
97 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
98 |
|
- |
|
99 |
//lista mala 4 |
- |
|
100 |
color(barva_listy) |
- |
|
101 |
translate([-(((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)),((pocet_der1+2)*vzdalenost_der)/2,-vyska/2]) |
- |
|
102 |
rotate(a=[0,0,270]) |
- |
|
103 |
lista (vzdalenost_der,pocet_der1,vzdalenost_od_okraje,vzdalenost_od_diry,vzdalenost_1,vzdalenost_2, zapust,vyska_listy,tloustka_celicka,sirka_materialu,vyska_hlavy,prumer_hlavy,prumer_sroubu,prumer_matice,vyska_matice,posuv_dorazu,matice_sila_materialu); |
- |
|
104 |
|
- |
|
105 |
//CELICKA |
- |
|
106 |
//-------------------------------------------------------- |
- |
|
107 |
//celicko predni |
- |
|
108 |
|
- |
|
109 |
color(barva_celicka) |
- |
|
110 |
translate([0,-(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)-((((vzdalenost_od_okraje+vzdalenost_od_diry)/2)-sirka_materialu)-(tloustka_celicka/2)),-(vyska-2*zapust-vule_vysky_celicka)/2]) |
- |
|
111 |
celicko_predni (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky); |
- |
|
112 |
|
- |
|
113 |
//celicko zadni |
- |
|
114 |
color(barva_celicka) |
- |
|
115 |
translate([0,((pocet_der1+2)*vzdalenost_der)+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)+((((vzdalenost_od_okraje+vzdalenost_od_diry)/2)-sirka_materialu)-(tloustka_celicka/2)),-(vyska-2*zapust-vule_vysky_celicka)/2]) |
- |
|
116 |
rotate(a=[0,0,180]) |
- |
|
117 |
celicko_zadni (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky); |
- |
|
118 |
///* |
- |
|
119 |
//celicko prave |
- |
|
120 |
color(barva_celicka) |
- |
|
121 |
translate([((pocet_der2+2)*vzdalenost_der)/2+(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)+((((vzdalenost_od_okraje+vzdalenost_od_diry)/2)-sirka_materialu)-(tloustka_celicka/2)),(pocet_der1+2)*vzdalenost_der/2,-(vyska-2*zapust-vule_vysky_celicka)/2]) |
- |
|
122 |
rotate(a=[0,0,90]) |
- |
|
123 |
celicko_prave (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky); |
- |
|
124 |
//*/ |
- |
|
125 |
//celicko leve |
- |
|
126 |
color(barva_celicka) |
- |
|
127 |
translate([-((pocet_der2+2)*vzdalenost_der)/2-(((vzdalenost_od_diry+vzdalenost_od_okraje)/2)-vzdalenost_od_diry)-((((vzdalenost_od_okraje+vzdalenost_od_diry)/2)-sirka_materialu)-(tloustka_celicka/2)),(pocet_der1+2)*vzdalenost_der/2,-(vyska-2*zapust-vule_vysky_celicka)/2]) |
- |
|
128 |
rotate(a=[0,0,270]) |
- |
|
129 |
celicko_leve (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky); |
- |
|
130 |
|
- |
|
131 |
//PLBASE SPODNI |
- |
|
132 |
//------------------------------------------------------------- |
- |
|
133 |
color(barva_plbase) |
- |
|
134 |
//základní plbase bez nožiček |
- |
|
135 |
/* |
- |
|
136 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,-(vyska/2)]) |
- |
|
137 |
rotate(a=[180,0,90]) |
- |
|
138 |
|
- |
|
139 |
|
- |
|
140 |
plbase(pocet_der1+3,pocet_der2+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
- |
|
141 |
*/ |
- |
|
142 |
|
- |
|
143 |
//plbase s nožičkama |
- |
|
144 |
//* |
- |
|
145 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,-((vyska/2))]) |
- |
|
146 |
rotate(a=[180,0,90]) |
- |
|
147 |
plbase_s_nozickama(pocet_der1+3,pocet_der2+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,vyska_nozicky,vyska_hlavy,prumer_hlavy); |
- |
|
148 |
//*/ |
- |
|
149 |
|
- |
|
150 |
//plbase se zápustnými šrouby |
- |
|
151 |
/* |
- |
|
152 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,-(vyska/2)]) |
- |
|
153 |
rotate(a=[180,0,90]) |
- |
|
154 |
|
- |
|
155 |
plbase_zapustene_srouby(pocet_der1+3,pocet_der2+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_hlavy,prekryti_der,prumer_hlavy); |
- |
|
156 |
*/ |
- |
|
157 |
|
- |
|
158 |
//PLBASE HORNI |
- |
|
159 |
//------------------------------------------------------------- |
- |
|
160 |
|
- |
|
161 |
//základní plbase bez nožiček |
- |
|
162 |
|
- |
|
163 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,2* vyska]) |
- |
|
164 |
rotate(a=[0,0,0]) |
- |
|
165 |
{ |
- |
|
166 |
|
- |
|
167 |
plbase_bez_der_napis(pocet_der2+3,pocet_der1+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der,box_jmeno); |
- |
|
168 |
|
- |
|
169 |
} |
- |
|
170 |
|
- |
|
171 |
|
- |
|
172 |
|
- |
|
173 |
|
- |
|
174 |
|
- |
|
175 |
|
- |
|
176 |
|
- |
|
177 |
|
- |
|
178 |
|
- |
|
179 |
|
- |
|
180 |
/* |
- |
|
181 |
|
- |
|
182 |
|
- |
|
183 |
//základní plbase bez nožiček |
- |
|
184 |
|
- |
|
185 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,2* vyska]) |
- |
|
186 |
rotate(a=[0,0,0]) |
- |
|
187 |
{ |
- |
|
188 |
|
- |
|
189 |
plbase(pocet_der2+3,pocet_der1+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,tloustka_plbase,prekryti_der); |
- |
|
190 |
translate([ 0, 0, 0]) |
- |
|
191 |
rotate([0,0,0]) |
- |
|
192 |
write(box_jmeno,h=5,t=2, space= 1.1, font = "Letters.dxf",center=true); |
- |
|
193 |
|
- |
|
194 |
|
- |
|
195 |
} |
- |
|
196 |
//*/ |
- |
|
197 |
//plbase se zapuštěním šroubů |
- |
|
198 |
/* |
- |
|
199 |
translate([-((pocet_der2+2)*vzdalenost_der+2*vzdalenost_od_okraje)/2,-vzdalenost_od_okraje,(vyska/2)]) |
- |
|
200 |
rotate(a=[0,0,0]) |
- |
|
201 |
|
- |
|
202 |
plbase_zapustene_srouby(pocet_der2+3,pocet_der1+3,radidus_hrany,vzdalenost_der,vzdalenost_od_okraje,prumer_sroubu,vyska_hlavy,prekryti_der,prumer_hlavy); |
- |
|
203 |
*/ |
- |
|
204 |
|
- |
|
205 |
|
- |
|
206 |
|
- |
|