The REF* and VAL* are replaced by Kicad to put in the values hooked
into the PCB design of the user. Maybe there is a more elegant way to do
this or this is not the correct way. Just though this may (or may not)
be useful in the next madparts release.
As originally emailed:
I have a minor suggestion in the export section kicad.py.
I changed the code a bit to include VAL* and REF* like this:
fget(shape, 'rot')]) else: l.append([S('at'), fget(shape, 'x'), fc(-fget(shape, 'y'))]) if s == 'VALUE': l.append([S('layer'), S('F.Fab')])
l.append(S('hide'))
and so will produce a XXX.kicad_mod file like this:
module "MF563_FuseHolder" (layer F.Cu) (descr "TODO") (fp_text reference "REF" (at 0.0 -13.7) (layer F.SilkS) (effects (font (size 0.625 0.625) (thickness 0.1)))) (fp_text value "VAL" (at 0.0 13.7) (layer F.Fab) (effects (font (size 0.625 0.625) (thickness 0.1)))) (pad 1 thru_hole circle (size 2.4 2.4) (at 0.0 -10.9 0) (layers .Cu .Mask) (drill 0.8)) (pad 2 thru_hole circle (size 2.4 2.4) (at 0.0 10.9 0) (layers .Cu .Mask) (drill 0.8)) (fp_line (start -4.75 -13.0) (end 4.75 -13.0) (layer F.SilkS) (width 0.25)) (fp_line (start 4.75 13.0) (end -4.75 13.0) (layer F.SilkS) (width 0.25)) (fp_line (start 4.75 -13.0) (end 4.75 13.0) (layer F.SilkS) (width 0.25)) (fp_line (start -4.75 13.0) (end -4.75 -13.0) (layer F.SilkS) (width 0.25)))
The REF* and VAL* are replaced by Kicad to put in the values hooked into the PCB design of the user. Maybe there is a more elegant way to do this or this is not the correct way. Just though this may (or may not) be useful in the next madparts release.