From 47894c0fce144dbea488ea91e85bf815e1ed0830 Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Wed, 28 Apr 2021 11:59:38 +0200 Subject: [PATCH] no message --- extensions/fablabchemnitz/boxes.py/box.svg | 88 ------------------- .../fablabchemnitz/boxes.py/boxes_proxy.py | 13 +-- 2 files changed, 7 insertions(+), 94 deletions(-) delete mode 100644 extensions/fablabchemnitz/boxes.py/box.svg diff --git a/extensions/fablabchemnitz/boxes.py/box.svg b/extensions/fablabchemnitz/boxes.py/box.svg deleted file mode 100644 index 63c216ed..00000000 --- a/extensions/fablabchemnitz/boxes.py/box.svg +++ /dev/null @@ -1,88 +0,0 @@ - - - -PaintStorage - - -Shelf - PaintStorage -2021-04-28 11:57:10 -boxes PaintStorage --x 100 --y 300 --canheight 50 --candiameter 30 --minspace 10 --hexpattern false --thickness 3 --tabs 0 --debug false --reference 100 --burn 0.10000000149011612 --FingerJoint_angle 90 --FingerJoint_style rectangular --FingerJoint_surroundingspaces 2 --FingerJoint_edge_width 1 --FingerJoint_finger 2 --FingerJoint_play 0 --FingerJoint_space 2 --FingerJoint_width 1 --Stackable_angle 60 --Stackable_height 2 --Stackable_holedistance 1 --Stackable_width 4 --output box.svg -Stackable paint storage - -Created with Boxes.py (https://festi.info/boxes.py) -Command line: boxes PaintStorage --x 100 --y 300 --canheight 50 --candiameter 30 --minspace 10 --hexpattern false --thickness 3 --tabs 0 --debug false --reference 100 --burn 0.10000000149011612 --FingerJoint_angle 90 --FingerJoint_style rectangular --FingerJoint_surroundingspaces 2 --FingerJoint_edge_width 1 --FingerJoint_finger 2 --FingerJoint_play 0 --FingerJoint_space 2 --FingerJoint_width 1 --Stackable_angle 60 --Stackable_height 2 --Stackable_holedistance 1 --Stackable_width 4 --output box.svg - - - - - 100mm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/extensions/fablabchemnitz/boxes.py/boxes_proxy.py b/extensions/fablabchemnitz/boxes.py/boxes_proxy.py index 9b499194..1b192980 100644 --- a/extensions/fablabchemnitz/boxes.py/boxes_proxy.py +++ b/extensions/fablabchemnitz/boxes.py/boxes_proxy.py @@ -65,14 +65,15 @@ class boxesPyWrapper(inkex.GenerateExtension): p = etree.XMLParser(huge_tree=True) doc = etree.parse(stream, parser=etree.XMLParser(huge_tree=True)) stream.close() - - group = inkex.Group(id="boxes.py") - for element in doc.getroot(): - group.append(element) - return group if os.path.exists(box_file): - os.remove(box_file) #remove previously generated box file at the end too + os.remove(box_file) #remove previously generated box file at the end too + + group = inkex.Group(id="boxes.py") + for element in doc.getroot(): + group.append(element) + + return group if __name__ == '__main__': boxesPyWrapper().run() \ No newline at end of file