mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
fpdoc: new utility to generate a PDF with the footprints used in a project
- fab/pos2fab: can be called with "do", to read .pos and .cmp file - fpd2pdf/fpd2pdf: added syntax extension file.fpd:package to allow selection of a single package - fpd2pdf/fpdoc: generate a PDF with the footprints used in a specific project
This commit is contained in:
10
fab/pos2fab
10
fab/pos2fab
@@ -19,10 +19,12 @@ sub usage
|
||||
}
|
||||
|
||||
|
||||
&usage unless @ARGV == 2;
|
||||
if (!defined caller) {
|
||||
&usage unless @ARGV == 2;
|
||||
|
||||
$pos = $ARGV[0];
|
||||
$cmp = $ARGV[1];
|
||||
$pos = $ARGV[0];
|
||||
$cmp = $ARGV[1];
|
||||
}
|
||||
|
||||
open(FILE, $pos) || die "$pos: $!";
|
||||
while (<FILE>) {
|
||||
@@ -55,6 +57,8 @@ while (<FILE>) {
|
||||
}
|
||||
close FILE;
|
||||
|
||||
return 1 if defined caller;
|
||||
|
||||
print "\"Ref\",\"Footprint\",\"PosX(in)\",\"PosY(in)\",\"Rot(ccw)\"\n" || die;
|
||||
for (@order) {
|
||||
print "\"$_\",\"$fp{$_}\",$pos{$_}[0],$pos{$_}[1],$pos{$_}[2]\n" ||
|
||||
|
||||
Reference in New Issue
Block a user