From 3acdfe5c194082192f43903c6296981c3c27c1b0 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 28 Sep 2019 22:56:55 +0200 Subject: Fix empty template download --- webapp/pogojig.py | 7 + webapp/static/index.html | 10 +- webapp/static/pogojig_template_empty.svg | 5464 ++++++++++++++++++++ .../static/pogojig_template_empty_pre_render.svg | 638 +++ 4 files changed, 6114 insertions(+), 5 deletions(-) create mode 100644 webapp/static/pogojig_template_empty.svg create mode 100644 webapp/static/pogojig_template_empty_pre_render.svg (limited to 'webapp') diff --git a/webapp/pogojig.py b/webapp/pogojig.py index a7201d0..e2b1b47 100644 --- a/webapp/pogojig.py +++ b/webapp/pogojig.py @@ -100,6 +100,13 @@ def render_download(): as_attachment=True, attachment_filename=f'{path.splitext(session["filename"])[0]}_pogojig.zip') +@app.route('/pogojig_template_empty.svg') +def static_template(): + return send_file('static/pogojig_template_empty.svg', + mimetype='application/octet-stream', + as_attachment=True, + attachment_filename='pogojig_template_empty.svg') + @app.route('/session_reset', methods=['POST']) @require_session_id def session_reset(): diff --git a/webapp/static/index.html b/webapp/static/index.html index 586f64d..e26649f 100644 --- a/webapp/static/index.html +++ b/webapp/static/index.html @@ -17,8 +17,8 @@ PCB project for a pogo pin breakout and mounting PCB. You can start with either Gerber files exported from any PCB toolchain, or you can do a free-form layout using - the static Inkscape SVG template if you - wan to work from construction drawings, scanned or photographed PCBs etc. + the static Inkscape SVG template if you + want to work from construction drawings, scanned or photographed PCBs etc.

@@ -26,11 +26,11 @@
1. Convert your Gerbers to an SVG template and draw pogo pins, mounting holes and cutouts into the template. Don't have gerbers? Start with an - empty template. + empty template.
click to open
- Pogospace + Pogospace
@@ -49,7 +49,7 @@
click to open
- Jigerator + Jigerator
diff --git a/webapp/static/pogojig_template_empty.svg b/webapp/static/pogojig_template_empty.svg new file mode 100644 index 0000000..adae9d5 --- /dev/null +++ b/webapp/static/pogojig_template_empty.svg @@ -0,0 +1,5464 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webapp/static/pogojig_template_empty_pre_render.svg b/webapp/static/pogojig_template_empty_pre_render.svg new file mode 100644 index 0000000..9435302 --- /dev/null +++ b/webapp/static/pogojig_template_empty_pre_render.svg @@ -0,0 +1,638 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + PogoJig Template for Inkscape standalone DIY version Use this template to draw a blueprint of your test fixture. The different parts of this blueprint are separated onto different layers in inkscape. You can access these layers with the drop-down menu below the palette or through the "Layers" dialog in the "Layer" menu. Make sure all objects end up on the correct layer.The generator only takes into account an objects SVG outline path, that is the middle of the outline stroke. It's best to use filled objects only with no outline stroke. + Test Points is for the holes the pogo pins will be soldered into. For each pogo pin add a circle slightly larger than the diameter of the pin's stem (not head) in the exact location the pogo pin should appear. + + Outline is for your target PCB's outline. You can import DXF files using inkscape, or you could trace a picture such as a scan of a board on this layer. + + Grip Slots is for cutouts in the test fixture to allow you to pop out the target board. + + Mounting Holes is for holes for screws to connect the plastic holder to the base PCB. Place a circle for each screw hole here so that they don't collide with the target PCB. 3.2mm for M3 screws is a good choice here. + + + + + + + + + -- cgit