Root/vialtray/doit

Source at commit 1d72af7 created 13 years 4 months ago.
By Werner Almesberger, vialtray: make a tray for vials containing 0402/0603 components (in progress)
1#!/bin/sh
2DIR=/home/moko/svn.openmoko.org/developers/werner/cncmap
3RECT=$DIR/rect/rect
4ALIGN=$DIR/align/align
5ZMAP=$DIR/zmap/zmap
6GP2RML=$DIR/gp2rml/gp2rml
7CAMEO=../../../cae-tools/cameo/cameo
8
9GEN=${1:-./pcb.pl}
10
11# manual tool positioning !!
12rdate="0 0 0 150 0 0 0 100 0"
13# lower Z by 0.5 mm relative to highest point (-56.8)
14Z=0
15
16rect=`$RECT $rdata | awk '{$3 = ""; print}'`
17
18# cameo: we inline the tool diameter with the data
19
20$GEN |
21  awk '{ if ($3 != "") $3 += '$Z'; print $0; }' |
22  $CAMEO -d 0 |
23  $ALIGN 0 1 $rect |
24        # angle, reference (lower left corner), rect
25  $GP2RML 20 2 2
26        # clearance, xy speed, z speed
27# since everything is in the same plane, z clearance must be thickness plus
28# real clearance !
29

Archive Download this file

Branches:
master



interactive