forked from jakeson21/boxmaker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmy_boxmaker.inx
268 lines (215 loc) · 18.8 KB
/
my_boxmaker.inx
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<?xml version="1.0" encoding="UTF-8"?>
<!--
Generates Inkscape SVG file containing box components needed to
laser cut a tabbed construction box taking kerf and clearance into account
Copyright (C) 2016 Apple Muncy [email protected]
Copyright (C) 2011 elliot white [email protected]
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Box Maker with Nut Slots</_name>
<id>org.bloominglabs</id>
<dependency type="executable" location="extensions">my_boxmaker.py</dependency>
<dependency type="executable" location="extensions">ink_helper.py</dependency>
<dependency type="executable" location="extensions">simpletransform.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<dependency type="executable" location="extensions">my_box.py</dependency>
<dependency type="executable" location="extensions">my_edge.py</dependency>
<dependency type="executable" location="extensions">my_slots.py</dependency>
<dependency type="executable" location="extensions">my_panel.py</dependency>
<param name="active-tab" type="notebook">
<page name="Global" _gui-text="Global settings">
<param name="unit" _gui-text="Unit" type="optiongroup" appearance="minimal">
<option value="mm">mm</option>
<option value="cm">cm</option>
<option value="in">in</option>
</param>
<param name="inside" type="optiongroup" _gui-text="Box Dimensions">
<_option value="1">Inside</_option>
<_option value="0">Outside</_option>
</param>
<param name="length" type="float" precision="3" min="0.0" max="10000.0" _gui-text="Length">100.0</param>
<param name="length_tab_width" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Minimum/Preferred Length Tab Width">10.0</param>
<param name="width" type="float" precision="3" min="0.0" max="10000.0" _gui-text="Width">80.0</param>
<param name="width_tab_width" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Minimum/Preferred Width Tab Width">10.0</param>
<param name="depth" type="float" precision="3" min="0.0" max="10000.0" _gui-text="Depth">60.o</param>
<param name="depth_tab_width" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Minimum/Preferred Depth Tab Width">10.0</param>
<param name="equal" type="optiongroup" _gui-text="Tab Width">
<_option value="Fixed">Fixed</_option>
<_option value="Proportional">Proportional</_option>
</param>
<param name="thickness" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Material Thickness">6.0</param>
<param name="kerf" type="float" precision="3" min="0.0" max="10000.0" _gui-text="Kerf (cut width)">0.23</param>
<param name="clearance" type="float" precision="3" min="0.0" max="10000.0" _gui-text="Clearance">0.020</param>
<param name="style" _gui-text="Layout/Style" type="optiongroup" appearance="minimal">
<option value="1">Diagramatic</option>
<!-- doing away with this choice for now.
<option value="2">3 piece</option>
<option value="3">Inline(compact)</option>
<option value="4">Diag Alternate Tabs</option>
-->
</param>
<param name="spacing" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Space Between Parts">1.0</param>
</page>
<page name="Screw/Nut" _gui-text="Screw/Nut">
<param name="screw_length" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Screw Length">16</param>
<param name="screw_diameter" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Screw Diameter">3</param>
<param name="nut_height" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Nut Height">2.26</param>
<param name="nut_diameter" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Nut Diameter">5.44</param>
</page>
<page name="panels">
<param name="panel-options" type="notebook">
<page name="Front" _gui-text="Front">
<param name="front_panel_cutout" type="boolean" _gui-text="Draw cutout">true</param>
<param name="front_panel_center_X" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center line X (side to side)">0.0</param>
<param name="front_panel_center_Y" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center Line Y (up and down)">0.0</param>
<param name="front_panel_dim_X" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout width">10.0</param>
<param name="front_panel_dim_Y" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout Height">10.0</param>
<param name="front_panel_corner_R" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout corner radius">10.0</param>
<param name="front_panel_top_edge_nutslot" type="boolean" _gui-text="top edge nut slots">true</param>
<param name="front_panel_top_edge_screw_hole" type="boolean" _gui-text="top edge screw holes">true</param>
<param name="front_panel_left_edge_nutslot" type="boolean" _gui-text="Left edge nut slots">true</param>
<param name="front_panel_left_edge_screw_hole" type="boolean" _gui-text="Left edge screw holes">true</param>
<param name="front_panel_right_edge_nutslot" type="boolean" _gui-text="right edge nut slots">true</param>
<param name="front_panel_right_edge_screw_hole" type="boolean" _gui-text="right edge screw holes">true</param>
<param name="front_panel_bottom_edge_nutslot" type="boolean" _gui-text="Bottom edge nut slots">true</param>
<param name="front_panel_bottom_edge_screw_hole" type="boolean" _gui-text="Bottom edge screw holes">true</param>
<param name="divider_panel_bottom_edge_screw_hole" type="boolean" _gui-text="Divider screw holes">true</param>
</page>
<page name="Back" _gui-text="Back">Back
<param name="back_panel_cutout" type="boolean" _gui-text="Draw cutout">true</param>
<param name="back_panel_center_X" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center line X (side to side)">0.0</param>
<param name="back_panel_center_Y" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center Line Y (up and down)">0.0</param>
<param name="back_panel_dim_X" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout width">10.0</param>
<param name="back_panel_dim_Y" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout Height">10.0</param>
<param name="back_panel_corner_R" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout corner radius">10.0</param>
<param name="back_panel_top_edge_nutslot" type="boolean" _gui-text="top edge nut slots">true</param>
<param name="back_panel_top_edge_screw_hole" type="boolean" _gui-text="top edge screw holes">true</param>
<param name="back_panel_left_edge_nutslot" type="boolean" _gui-text="Left edge nut slots">true</param>
<param name="back_panel_left_edge_screw_hole" type="boolean" _gui-text="Left edge screw holes">true</param>
<param name="back_panel_right_edge_nutslot" type="boolean" _gui-text="right edge nut slots">true</param>
<param name="back_panel_right_edge_screw_hole" type="boolean" _gui-text="right edge screw holes">true</param>
<param name="back_panel_bottom_edge_nutslot" type="boolean" _gui-text="Bottom edge nut slots">true</param>
<param name="back_panel_bottom_edge_screw_hole" type="boolean" _gui-text="Bottom edge screw holes">true</param>
<param name="divider_panel_top_edge_screw_hole" type="boolean" _gui-text="divider screw holes">true</param>
</page>
<page name="Left side" _gui-text="Left Side">Left side
<param name="left_panel_cutout" type="boolean" _gui-text="Draw cutout">true</param>
<param name="left_panel_center_X" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center line X (side to side)">0.0</param>
<param name="left_panel_center_Y" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center Line Y (up and down)">0.0</param>
<param name="left_panel_dim_X" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout width">10.0</param>
<param name="left_panel_dim_Y" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout Height">10.0</param>
<param name="left_panel_corner_R" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout corner radius">10.0</param>
<param name="left_panel_top_edge_nutslot" type="boolean" _gui-text="top edge nut slots">true</param>
<param name="left_panel_top_edge_screw_hole" type="boolean" _gui-text="top edge screw holes">true</param>
<param name="left_panel_left_edge_nutslot" type="boolean" _gui-text="Left edge nut slots">true</param>
<param name="left_panel_left_edge_screw_hole" type="boolean" _gui-text="Left edge screw holes">true</param>
<param name="left_panel_right_edge_nutslot" type="boolean" _gui-text="right edge nut slots">true</param>
<param name="left_panel_right_edge_screw_hole" type="boolean" _gui-text="right edge screw holes">true</param>
<param name="left_panel_bottom_edge_nutslot" type="boolean" _gui-text="Bottom edge nut slots">true</param>
<param name="left_panel_bottom_edge_screw_hole" type="boolean" _gui-text="Bottom edge screw holes">true</param>
<param name="divider_panel_left_edge_screw_hole" type="boolean" _gui-text="Divider screw holes">true</param>
</page>
<page name="Right Side" _gui-text="Right Side">Right side
<param name="right_panel_cutout" type="boolean" _gui-text="Draw cutout">true</param>
<param name="right_panel_center_X" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center line X (side to side)">0.0</param>
<param name="right_panel_center_Y" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center Line Y (up and down)">0.0</param>
<param name="right_panel_dim_X" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout width">10.0</param>
<param name="right_panel_dim_Y" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout Height">10.0</param>
<param name="right_panel_corner_R" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout corner radius">10.0</param>
<param name="right_panel_top_edge_nutslot" type="boolean" _gui-text="top edge nut slots">true</param>
<param name="right_panel_top_edge_screw_hole" type="boolean" _gui-text="top edge screw holes">true</param>
<param name="right_panel_left_edge_nutslot" type="boolean" _gui-text="Left edge nut slots">true</param>
<param name="right_panel_left_edge_screw_hole" type="boolean" _gui-text="Left edge screw holes">true</param>
<param name="right_panel_right_edge_nutslot" type="boolean" _gui-text="right edge nut slots">true</param>
<param name="right_panel_right_edge_screw_hole" type="boolean" _gui-text="right edge screw holes">true</param>
<param name="right_panel_bottom_edge_nutslot" type="boolean" _gui-text="Bottom edge nut slots">true</param>
<param name="right_panel_bottom_edge_screw_hole" type="boolean" _gui-text="Bottom edge screw holes">true</param>
<param name="divider_panel_right_edge_screw_hole" type="boolean" _gui-text="Divider screw holes">true</param>
</page>
<!-- :%!xmllint -format -
-->
<page name="Top" _gui-text="Top">Top
<param name="top_panel_cutout" type="boolean" _gui-text="Draw cutout">true</param>
<param name="top_panel_center_X" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center line X (side to side)">0.0</param>
<param name="top_panel_center_Y" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center Line Y (up and down)">0.0</param>
<param name="top_panel_dim_X" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout width">10.0</param>
<param name="top_panel_dim_Y" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout Height">10.0</param>
<param name="top_panel_corner_R" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout corner radius">10.0</param>
<param name="top_panel_top_edge_nutslot" type="boolean" _gui-text="top edge nut slots">true</param>
<param name="top_panel_top_edge_screw_hole" type="boolean" _gui-text="top edge screw holes">true</param>
<param name="top_panel_left_edge_nutslot" type="boolean" _gui-text="Left edge nut slots">true</param>
<param name="top_panel_left_edge_screw_hole" type="boolean" _gui-text="Left edge screw holes">true</param>
<param name="top_panel_right_edge_nutslot" type="boolean" _gui-text="right edge nut slots">true</param>
<param name="top_panel_right_edge_screw_hole" type="boolean" _gui-text="right edge screw holes">true</param>
<param name="top_panel_bottom_edge_nutslot" type="boolean" _gui-text="Bottom edge nut slots">true</param>
<param name="top_panel_bottom_edge_screw_hole" type="boolean" _gui-text="Bottom edge screw holes">true</param>
</page>
<page name="Divider" _gui-text="Divider">
<param name="has_divider" type="boolean" _gui-text="Has divider ?">true</param>
<param name="divider_distance_from_top" type="float" precision="2" min="0.0" max="10000.0">50.0</param>
<param name="divider_panel_cutout" type="boolean" _gui-text="Draw cutout">true</param>
<param name="divider_panel_center_X" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center line X (side to side)">0.0</param>
<param name="divider_panel_center_Y" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center Line Y (up and down)">0.0</param>
<param name="divider_panel_dim_X" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout width">10.0</param>
<param name="divider_panel_dim_Y" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout Height">10.0</param>
<param name="divider_panel_corner_R" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout corner radius">10.0</param>
<param name="divider_panel_top_edge_nutslot" type="boolean" _gui-text="top edge nut slots">true</param>
<param name="divider_panel_left_edge_nutslot" type="boolean" _gui-text="Left edge nut slots">true</param>
<param name="divider_panel_right_edge_nutslot" type="boolean" _gui-text="right edge nut slots">true</param>
<param name="divider_panel_bottom_edge_nutslot" type="boolean" _gui-text="Bottom edge nut slots">true</param>
</page>
<page name="Bottom" _gui-text="Bottom">Bottom
<param name="bottom_panel_cutout" type="boolean" _gui-text="Draw cutout">true</param>
<param name="bottom_panel_center_X" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center line X (side to side)">0.0</param>
<param name="bottom_panel_center_Y" type="float" precision="2" min="-10000.0" max="10000.0" _gui-text="Cutout offset from Center Line Y (up and down)">0.0</param>
<param name="bottom_panel_dim_X" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout width">10.0</param>
<param name="bottom_panel_dim_Y" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout Height">10.0</param>
<param name="bottom_panel_corner_R" type="float" precision="2" min="0.0" max="10000.0" _gui-text="Cutout corner radius">10.0</param>
<param name="bottom_panel_top_edge_nutslot" type="boolean" _gui-text="top edge nut slots">true</param>
<param name="bottom_panel_top_edge_screw_hole" type="boolean" _gui-text="top edge screw holes">true</param>
<param name="bottom_panel_left_edge_nutslot" type="boolean" _gui-text="Left edge nut slots">true</param>
<param name="bottom_panel_left_edge_screw_hole" type="boolean" _gui-text="Left edge screw holes">true</param>
<param name="bottom_panel_right_edge_nutslot" type="boolean" _gui-text="right edge nut slots">true</param>
<param name="bottom_panel_right_edge_screw_hole" type="boolean" _gui-text="right edge screw holes">true</param>
<param name="bottom_panel_bottom_edge_nutslot" type="boolean" _gui-text="Bottom edge nut slots">true</param>
<param name="bottom_panel_bottom_edge_screw_hole" type="boolean" _gui-text="Bottom edge screw holes">true</param>
</page>
</param>
</page>
<page name="private" gui-text="private" gui-hidden="false">Blank
<param name="inactive-tab" type="notebook" gui-hidden="false">
<!-- change gui-hidden to true to hide options -->
<page name="Debug" _gui-text="Debug">Debug mode
<param name="debug" type="boolean" _gui-text="Debug mode On/Off">False</param>
</page>
<page name="bearing" _gui-text="Bearing and stepper motor options " gui-hidden="false">3D Printer mode params
<param name="add_bearings" type="boolean" _gui-text="Turn special 3D Printer params mode On/Off">False</param>
<param name="bearing_diameter" type="float" precision="2" min="0.0" max="40.0" _gui-text="Bearing Diameter">22.0</param>
<param name="stepper_motor" _gui-text="stepper motor type" type="optiongroup" appearance="minimal"><option value="nema-17">nema-17</option></param>
<param name="drive_belt" type="float" min="50.0" max="1000.0" _gui-text="length of drive belt">200.0</param>
<param name="axis_offset" type="float" precision="2" min="0.0" max="100.0" _gui-text="vertical offset of the bearing shafts" gui-hidden="false">18.0</param>
</page>
</param>
</page>
</param>
<!--name="tab"-->
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="Laser Tools"/>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">my_boxmaker.py</command>
</script>
</inkscape-extension>