[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Script for converting mm to hundredths of thou
On Sun, 2010-07-25 at 19:10 +0200, Karl Hammar wrote:
> DJ:
> > > Best would be if pcb could parse these "mm"'s on input.
> >
> > It does.
>
> Great!!, but how?
>
> I cannot see any reference of mm for the file format in doc/pcb.pdf
>
> I can see that there should be some support:
>
> $ grep FLOATINGMM src/parse_l.l
> FLOATINGMM {FLOATING}[mM][mM]
> {FLOATINGMM} { return parse_number(3937.0079); }
>
>
> But my naive try did not succeed:
>
> $ cat aa.fp
> Element["" "jumper_10" "R?" "" 0 0 0 0 0 100 ""]
> (
> Pin [ 0 0 2.2mm 0.5mm 2.4mm 1.0mm "1" "1" "" ]
> Pin [ 40000 0 2.2mm 0.5mm 2.4mm 1.0mm "1" "2" "" ]
>
> ElementLine [ 0 0 40000 0 1000]
> )
> $ pcb aa.fp
> Looking for default_font in /usr/share/pcb
> Found default_font in /usr/share/pcb
> ERROR parsing file 'aa.fp'
> line: 3
> description: 'syntax error'
>
Yes, this is how it should work, as DJ told us, in this thread again.
Works fine for 2009 PCB snapshot shipped with Gentoo-Linux. If I
remember correctly, this syntax was introduced about two years ago, so
2007 snapshot and earlier may not support it.
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user