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

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



Armin Faltl:
> Hm, appart from the fact, this is no good 0805-footprint, the below
> ------------------------------
> Element(0x00 "SMD 0805" "" "smd0805" 0 100 0 100 0x00)
> (
> #   Pad[x1, y1, x2, y2, thickness, clearance, mask, name , pad number, 
> flags]
>     Pad(1000um  0um  1000um  0um 600um "1" 0x00000100)
>     Pad(3000um  0um  3000um  0um 600um "2" 0x00000100)
>     Mark(2000um 0um)
> )
> ------------------------------
> should be a footprint with 2mm distance between pad-centers.
> If oppened with pcb v20091103, the distance is apparently 200mm.
> Any comments welcome ;-)

If I take your footprint and first rewrites it as:

Element[ "" "SMD 0805" "" "smd0805" 0 0  0 0  0 100 ""]
(
    Pad[ 1mm 0mm  1mm 0mm  0.6mm 0.5mm 1.8mm  "1" "1" "square"]
    Pad[ 3mm 0mm  3mm 0mm  0.6mm 0.5mm 1.8mm  "2" "2" "square"]
)

and doing File/"load element data to paste-buffer" and putting it 
somewhare, and then the same with:

Element[ "" "SMD 0805" "" "smd0805" 0 0  0 0  0 100 ""] (
    Pad[ 1000um 0um  1000um 0um  600um 500um 1800um  "1" "1" "square"]
    Pad[ 3000um 0um  3000um 0um  600um 500um 1800um  "2" "2" "square"]
)

I get:

Element["" "SMD 0805" "" "smd0805" 120079 74803 0 0 0 100 ""]
(
        Pad[3937 0 3937 0 2362 1968 7087 "1" "1" "square"]
        Pad[11811 0 11811 0 2362 1968 7087 "2" "2" "square,edge2"]

        )

Element["" "SMD 0805" "" "smd0805" 120079 84646 0 0 0 100 ""]
(
        Pad[3937 0 3937 0 2362 1968 7087 "1" "1" "square"]
        Pad[11811 0 11811 0 2362 1968 7087 "2" "2" "square,edge2"]

        )

in the pcb file.

Maybe it does not work with "Pad(..)" and only with "Pad[..]".

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