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

Re: gEDA-user: SOT23



On Thu, Jan 13, 2005 at 05:32:36PM -0600, Bill Wilson wrote:
> On Thu, 13 Jan 2005 14:56:24 -0800
> Matt Ettus <boyscout@xxxxxxxxx> wrote:
> 
> > Does anybody have a surface mount crystal footprint?  I think its
> > HC49, but the only one in the library is through hole, and I think it
> > has other problems -- gsch2pcb causes it to have refdes "100" instead
> > of X1.
> 
> It's the PCB m4 macro PGK_CRYSTAL in misc.inc that is changing
> your "X1" to "100" before gsch2pcb can do anything.  This macro
> has defined some local variables (X1, X2, Y, Y1, Y2) for it's own
> use and that is munging your "X1".
> 
> About the only thing you can do in cases like this is create a custom
> m4 macro that works, or pick another refdes... lower case "x1" should work.

try this patch:

CS file: /cvsroot/pcb/pcb/lib/misc.inc,v
retrieving revision 1.2
diff -u -2 -r1.2 misc.inc
--- lib/misc.inc        20 Feb 2004 03:11:24 -0000      1.2
+++ lib/misc.inc        14 Jan 2005 00:28:40 -0000
@@ -314,5 +314,5 @@
        define(`Y1', `eval(Y -50)')
	define(`Y2', `eval(Y +50)')
-Element(0x00 "$1" "$2" "$3" X1 eval(Y2+20) 0 100 0x00)
+Element(0x00 "$1" "`$2'" "$3" X1 eval(Y2+20) 0 100 0x00)
 (
	 PIN(X1, Y, 60, 20, 1)

-Dan

--