added new version of boxes.py for Windows; more fixes in boxes.py inx

This commit is contained in:
Mario Voigt 2021-05-19 14:50:18 +02:00
parent 3dc8f7e90d
commit 5c521370f2
10 changed files with 173 additions and 4 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ extensions/fablabchemnitz/animate_order/animate_order.html
extensions/fablabchemnitz/path2flex/DebugPath2Flex.txt extensions/fablabchemnitz/path2flex/DebugPath2Flex.txt
extensions/fablabchemnitz/elliptical_cone_box/DebugEllConicBox.txt extensions/fablabchemnitz/elliptical_cone_box/DebugEllConicBox.txt
extensions/.pydevproject extensions/.pydevproject
extensions/.settings/org.eclipse.core.resources.prefs

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>DrillStand</name>
<id>info.festi.boxes.py.DrillStand</id>
<param name="generator" type="string" gui-hidden="true">drillstand</param>
<param name="tab" type="notebook">
<page name="tab_0" gui-text="DrillStand">
<param name="sx" type="string" gui-text="sx" gui-description="sections left to right in mm. See --sy for format">25*6</param>
<param name="sy" type="string" gui-text="sy" gui-description='sections back to front in mm. Possible formats: overallwidth/numberof sections e.g. "250/5"; sectionwidth*numberofsections e.g. "50*5"; section widths separated by ":" e.g. "30:25.5:70'>10:20:30</param>
<param name="sh" type="string" gui-text="sh" gui-description="sections bottom to top in mm. See --sy for format">25:40:60</param>
<param name="extra_height" type="float" precision="2" max="9999" gui-text="extra_height" gui-description="height difference left to right">15.0</param>
</page>
<page name="tab_1" gui-text="Default">
<param name="thickness" type="float" precision="2" max="9999" gui-text="thickness" gui-description="thickness of the material">3.0</param>
<param name="tabs" type="float" precision="2" max="9999" gui-text="tabs" gui-description="width of tabs holding the parts in place in mm (not supported everywhere)">0.0</param>
<param name="debug" type="bool" gui-text="debug" gui-description="print surrounding boxes for some structures">false</param>
<param name="reference" type="float" precision="2" max="9999" gui-text="reference" gui-description="print reference rectangle with given length (zero to disable)">100</param>
<param name="burn" type="float" precision="2" max="9999" gui-text="burn" gui-description='burn correction in mm (bigger values for tighter fit). Use BurnTest in "Parts and Samples" to find the right value.'>0.1</param>
</page>
<page name="tab_2" gui-text="Stackable Edges">
<param name="Stackable_angle" type="int" max="9999" gui-text="angle" gui-description="inside angle of the feet">60</param>
<param name="Stackable_height" type="float" precision="2" max="9999" gui-text="height" gui-description="height of the feet">1.0</param>
<param name="Stackable_holedistance" type="float" precision="2" max="9999" gui-text="holedistance" gui-description="distance from finger holes to bottom edge">1.0</param>
<param name="Stackable_width" type="int" max="9999" gui-text="width" gui-description="width of the feet">3</param>
</page>
<page name="tab_3" gui-text="Finger Joints">
<param name="FingerJoint_angle" type="float" precision="2" max="9999" gui-text="angle" gui-description="angle">90.0</param>
<param name="FingerJoint_style" type="optiongroup" appearance="combo" gui-text="style" gui-description="style of the fingers">
<option value="rectangular">rectangular</option>
<option value="springs">springs</option>
</param>
<param name="FingerJoint_surroundingspaces" type="float" precision="2" max="9999" gui-text="surroundingspaces" gui-description="maximum space at the start and end in multiple of normal spaces">2.0</param>
<param name="FingerJoint_edge_width" type="float" precision="2" max="9999" gui-text="edge_width" gui-description="space below holes of FingerHoleEdge">1.0</param>
<param name="FingerJoint_finger" type="float" precision="2" max="9999" gui-text="finger" gui-description="width of the fingers">2.0</param>
<param name="FingerJoint_play" type="float" precision="2" max="9999" gui-text="play" gui-description="extra space to allow finger move in and out">0.0</param>
<param name="FingerJoint_space" type="float" precision="2" max="9999" gui-text="space" gui-description="space between fingers">2.0</param>
<param name="FingerJoint_width" type="float" precision="2" max="9999" gui-text="width" gui-description="width of finger holes">1.0</param>
</page>
<page name="tab_4" gui-text="Example">
<image>./DrillStand-thumb.jpg</image>
</page>
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu name="Boxes.py">
<submenu name="Misc"/>
</submenu>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">boxes_proxy.py</command>
</script>
</inkscape-extension>

View File

@ -11,6 +11,7 @@
<param name="candiameter" type="int" max="9999" gui-text="candiameter" gui-description="Diameter of the paintcans">30</param> <param name="candiameter" type="int" max="9999" gui-text="candiameter" gui-description="Diameter of the paintcans">30</param>
<param name="minspace" type="int" max="9999" gui-text="minspace" gui-description="Minimum space between the paintcans">10</param> <param name="minspace" type="int" max="9999" gui-text="minspace" gui-description="Minimum space between the paintcans">10</param>
<param name="hexpattern" type="bool" gui-text="hexpattern" gui-description="Use hexagonal arrangement for the holes instead of orthogonal">false</param> <param name="hexpattern" type="bool" gui-text="hexpattern" gui-description="Use hexagonal arrangement for the holes instead of orthogonal">false</param>
<param name="drawer" type="bool" gui-text="drawer" gui-description="Create a stackable drawer instead">false</param>
</page> </page>
<page name="tab_1" gui-text="Default"> <page name="tab_1" gui-text="Default">
<param name="thickness" type="float" precision="2" max="9999" gui-text="thickness" gui-description="thickness of the material">3.0</param> <param name="thickness" type="float" precision="2" max="9999" gui-text="thickness" gui-description="thickness of the material">3.0</param>

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Platonic</name>
<id>info.festi.boxes.py.Platonic</id>
<param name="generator" type="string" gui-hidden="true">platonic</param>
<param name="tab" type="notebook">
<page name="tab_0" gui-text="Platonic">
<param name="x" type="float" precision="2" max="9999" gui-text="x" gui-description="inner width in mm (unless outside selected)">60</param>
<param name="outside" type="bool" gui-text="outside" gui-description="treat sizes as outside measurements that include the walls">true</param>
<param name="type" type="optiongroup" appearance="combo" gui-text="type" gui-description="type of platonic solid">
<option value="tetrahedron">tetrahedron</option>
<option value="cube">cube</option>
<option value="octahedron">octahedron</option>
<option value="dodecahedron">dodecahedron</option>
<option value="icosahedro">icosahedro</option>
</param>
</page>
<page name="tab_1" gui-text="Default">
<param name="thickness" type="float" precision="2" max="9999" gui-text="thickness" gui-description="thickness of the material">3.0</param>
<param name="tabs" type="float" precision="2" max="9999" gui-text="tabs" gui-description="width of tabs holding the parts in place in mm (not supported everywhere)">0.0</param>
<param name="debug" type="bool" gui-text="debug" gui-description="print surrounding boxes for some structures">false</param>
<param name="reference" type="float" precision="2" max="9999" gui-text="reference" gui-description="print reference rectangle with given length (zero to disable)">100</param>
<param name="burn" type="float" precision="2" max="9999" gui-text="burn" gui-description='burn correction in mm (bigger values for tighter fit). Use BurnTest in "Parts and Samples" to find the right value.'>0.1</param>
</page>
<page name="tab_2" gui-text="Finger Joints">
<param name="FingerJoint_angle" type="float" precision="2" max="9999" gui-text="angle" gui-description="angle">90.0</param>
<param name="FingerJoint_style" type="optiongroup" appearance="combo" gui-text="style" gui-description="style of the fingers">
<option value="rectangular">rectangular</option>
<option value="springs">springs</option>
</param>
<param name="FingerJoint_surroundingspaces" type="int" max="9999" gui-text="surroundingspaces" gui-description="maximum space at the start and end in multiple of normal spaces">0</param>
<param name="FingerJoint_edge_width" type="float" precision="2" max="9999" gui-text="edge_width" gui-description="space below holes of FingerHoleEdge">1.0</param>
<param name="FingerJoint_finger" type="float" precision="2" max="9999" gui-text="finger" gui-description="width of the fingers">2.0</param>
<param name="FingerJoint_play" type="float" precision="2" max="9999" gui-text="play" gui-description="extra space to allow finger move in and out">0.0</param>
<param name="FingerJoint_space" type="float" precision="2" max="9999" gui-text="space" gui-description="space between fingers">2.0</param>
<param name="FingerJoint_width" type="float" precision="2" max="9999" gui-text="width" gui-description="width of finger holes">1.0</param>
</page>
<page name="tab_3" gui-text="Example">
<image>./Platonic-thumb.jpg</image>
</page>
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu name="Boxes.py">
<submenu name="Unstable"/>
</submenu>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">boxes_proxy.py</command>
</script>
</inkscape-extension>

View File

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>SlatwallPinRow</name>
<id>info.festi.boxes.py.SlatwallPinRow</id>
<param name="generator" type="string" gui-hidden="true">slatwallpinrow</param>
<param name="tab" type="notebook">
<page name="tab_0" gui-text="SlatwallPinRow">
<param name="pins" type="int" max="9999" gui-text="pins" gui-description="number of pins">8</param>
<param name="pinlength" type="float" precision="2" max="9999" gui-text="pinlength" gui-description="length of pins (in mm)">35</param>
<param name="pinwidth" type="float" precision="2" max="9999" gui-text="pinwidth" gui-description="width of pins (in mm)">10</param>
<param name="pinspacing" type="float" precision="2" max="9999" gui-text="pinspacing" gui-description="space from middle to middle of pins (in mm)">35</param>
<param name="pinspacing_increment" type="float" precision="2" max="9999" gui-text="pinspacing_increment" gui-description="increase spacing from left to right (in mm)">0.0</param>
<param name="angle" type="float" precision="2" max="9999" gui-text="angle" gui-description="angle of the pins pointing up (in degrees)">20.0</param>
<param name="hooks" type="int" max="9999" gui-text="hooks" gui-description="number of hooks into the slatwall">3</param>
<param name="h" type="float" precision="2" max="9999" gui-text="h" gui-description="height of the front plate (in mm) - needs to be at least 7 time the thickness">50.0</param>
</page>
<page name="tab_1" gui-text="Default">
<param name="thickness" type="float" precision="2" max="9999" gui-text="thickness" gui-description="thickness of the material">3.0</param>
<param name="tabs" type="float" precision="2" max="9999" gui-text="tabs" gui-description="width of tabs holding the parts in place in mm (not supported everywhere)">0.0</param>
<param name="debug" type="bool" gui-text="debug" gui-description="print surrounding boxes for some structures">false</param>
<param name="reference" type="float" precision="2" max="9999" gui-text="reference" gui-description="print reference rectangle with given length (zero to disable)">100</param>
<param name="burn" type="float" precision="2" max="9999" gui-text="burn" gui-description='burn correction in mm (bigger values for tighter fit). Use BurnTest in "Parts and Samples" to find the right value.'>0.1</param>
</page>
<page name="tab_2" gui-text="Finger Joints">
<param name="FingerJoint_angle" type="float" precision="2" max="9999" gui-text="angle" gui-description="angle">90.0</param>
<param name="FingerJoint_style" type="optiongroup" appearance="combo" gui-text="style" gui-description="style of the fingers">
<option value="rectangular">rectangular</option>
<option value="springs">springs</option>
</param>
<param name="FingerJoint_surroundingspaces" type="float" precision="2" max="9999" gui-text="surroundingspaces" gui-description="maximum space at the start and end in multiple of normal spaces">0.0</param>
<param name="FingerJoint_edge_width" type="float" precision="2" max="9999" gui-text="edge_width" gui-description="space below holes of FingerHoleEdge">1.0</param>
<param name="FingerJoint_finger" type="float" precision="2" max="9999" gui-text="finger" gui-description="width of the fingers">2.0</param>
<param name="FingerJoint_play" type="float" precision="2" max="9999" gui-text="play" gui-description="extra space to allow finger move in and out">0.0</param>
<param name="FingerJoint_space" type="float" precision="2" max="9999" gui-text="space" gui-description="space between fingers">2.0</param>
<param name="FingerJoint_width" type="float" precision="2" max="9999" gui-text="width" gui-description="width of finger holes">1.0</param>
</page>
<page name="tab_3" gui-text="SlatWallEdges">
<param name="SlatWall_bottom_hook" type="optiongroup" appearance="combo" gui-text="bottom_hook" gui-description='"spring", "stud" or "none"'>
<option value="hook">hook</option>
<option value="spring">spring</option>
<option value="stud">stud</option>
<option value="none">none</option>
</param>
<param name="SlatWall_hook_depth" type="float" precision="2" max="9999" gui-text="hook_depth" gui-description="horizontal width of the hook">4.0</param>
<param name="SlatWall_pitch" type="float" precision="2" max="9999" gui-text="pitch" gui-description="vertical spacing of slots middle to middle (in mm)">101.6</param>
<param name="SlatWall_edge_width" type="float" precision="2" max="9999" gui-text="edge_width" gui-description="space below holes of FingerHoleEdge">1.0</param>
<param name="SlatWall_hook_extra_height" type="float" precision="2" max="9999" gui-text="hook_extra_height" gui-description="space surrounding connectors (in multiples of thickness)">2.0</param>
</page>
<page name="tab_4" gui-text="Example">
<image>./SlatwallPinRow-thumb.jpg</image>
</page>
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu name="Boxes.py">
<submenu name="SlatWall"/>
</submenu>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">boxes_proxy.py</command>
</script>
</inkscape-extension>

View File

@ -26,7 +26,6 @@
<option value="i">i</option> <option value="i">i</option>
<option value="k">k</option> <option value="k">k</option>
<option value="v">v</option> <option value="v">v</option>
<option value="f">f</option>
<option value="L">L</option> <option value="L">L</option>
<option value="t">t</option> <option value="t">t</option>
</param> </param>

View File

@ -27,7 +27,6 @@
<option value="i">i</option> <option value="i">i</option>
<option value="k">k</option> <option value="k">k</option>
<option value="v">v</option> <option value="v">v</option>
<option value="f">f</option>
<option value="L">L</option> <option value="L">L</option>
<option value="t">t</option> <option value="t">t</option>
</param> </param>

View File

@ -16,7 +16,6 @@
<option value="i">i</option> <option value="i">i</option>
<option value="k">k</option> <option value="k">k</option>
<option value="v">v</option> <option value="v">v</option>
<option value="f">f</option>
<option value="L">L</option> <option value="L">L</option>
<option value="t">t</option> <option value="t">t</option>
</param> </param>

View File

@ -16,7 +16,6 @@
<option value="i">i</option> <option value="i">i</option>
<option value="k">k</option> <option value="k">k</option>
<option value="v">v</option> <option value="v">v</option>
<option value="f">f</option>
<option value="L">L</option> <option value="L">L</option>
<option value="t">t</option> <option value="t">t</option>
</param> </param>