[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Script for converting mm to hundredths of thou



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'

Regards,
/Karl Hammar

---------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57




_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user