[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: plated mounting holes
On Fri, 2009-10-23 at 15:24 -0400, DJ Delorie wrote:
>
> You can do the same thing with an element, and probably should, as
> mounting holes should be treated as elements. It would have one Pin()
> (for the hole and inner copper) and two Pad()s (for the outer coppers).
> Plus whatever silk you want to identify it.
>
Thanks for the explanation.
I have added this type of mounting hole to my sfg footprint generator.
(It uses a fixed minimal annular ring of 10mil for the pin, and pads on
component and solder side. We may consider making the annular ring
adjustable, do we need that?)
http://www.ssalewski.de/SFG.html.en
Here is an input file and the resulting element. Let me know if
something is wrong.
stefan@AMD64-X2 ~/Downloads $ cat input.txt
Device = Global
elementdir = "./"
silkwidth = 10 mil
silkoffset = 10 mil
textpos = upperleft
textorientation = horizontal
refdessize = 100
mask = 6 mil
clearance = 10 mil
Device = MountingHole
defaultunit mm
hole-scale = 100
hole-add-on = 0.1 mm
description = "Mounting hole 4mm, for screw with 8mm head, plated"
desc = "Hole 4mm"
drill-dia = 4
pad-dia = 8
silk-dia = 0 # auto adjust
Generate Hole-4mm_Head-8mm_plated.fp
stefan@AMD64-X2 ~/Downloads $ ruby sfg.rb input.txt
stefan@AMD64-X2 ~/Downloads $ cat Hole-4mm_Head-8mm_plated.fp
Element["" "Hole 4mm" "Hole-4mm_Head-8mm_plated" "" 0 0 -17748 -24748 0 100 ""]
(
Pin[0 0 18142 2000 19342 16142 "1" "1" ""]
Pad[0 0 0 0 31496 2000 32696 "1" "1" ""]
Pad[0 0 0 0 31496 2000 32696 "1" "1" "onsolder"]
ElementArc[0 0 17248 17248 0 360 1000]
Attribute("name" "Hole-4mm_Head-8mm_plated")
Attribute("description" "Mounting hole 4mm, for screw with 8mm head, plated")
Attribute("desc" "Hole 4mm")
)
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user