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

Re: gEDA-user: drill files from gerber output in HID version



Awesome,

# emerge pcb-cvs
I'll let you know if they complain again :).  I can't say how awesome
the whole gschem suite is, and I much prefer PCB now it's gone GTK.  I
used to use Protel but I hated booting into VMWare.

Thanks,
James

p.s. I attached the cvs gentoo ebuild I've been using, if anyone wants
it.  It responds to the date automatically.

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/pcb-20050609.ebuild,v 1.2
2006/01/25 17:04:16 phosphan Exp $

DESCRIPTION="tool for the layout of printed circuit boards"
HOMEPAGE="http://pcb.sourceforge.net/";

inherit cvs eutils autotool

ECVS_SERVER="pcb.cvs.sourceforge.net:/cvsroot/pcb"
ECVS_MODULE="pcb"
#ECVS_BRANCH="HEAD"
ECVS_LOCALNAME="pcb"
ECVS_CO_DATE=${PV}
ECVS_UP_OPTS="-D ${ECVS_CO_DATE} -dP"
ECVS_CO_OPTS="-D ${ECVS_CO_DATE}"

S=${WORKDIR}/${ECVS_LOCALNAME}

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""

RDEPEND=">=x11-libs/gtk+-2.4"
DEPEND="${RDEPEND}
       =dev-lang/tk-8*
       || (
               virtual/x11
               x11-proto/xproto
          )"

src_unpack() {
       cvs_src_unpack
       #unpack ${A}
       cd ${S}
       sed -i 's/\(^START-INFO\)/INFO-DIR-SECTION Miscellaneous\n\1/' doc/pcb.i
nfo
}

src_compile() {
       ./autogen.sh  --disable-doc
       econf --disable-doc|| die
       emake || die
}

src_install() {
       make DESTDIR=${D} install || die
       dodoc AUTHORS ChangeLog NEWS README
}


On 6/5/06, DJ Delorie <dj@xxxxxxxxxxx> wrote:

> I am using GTK-HID, I generated the gerber files with the export > option. I tried sending the .fab.gbr and they said not in Excellon > format. So then I sent the .cnc file and they said "your NC drill > file use tools which are not defined". Any hints?

Rounding bug.  I'm checking this patch in.

Index: hid/gerber/gerber.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/hid/gerber/gerber.c,v
retrieving revision 1.11
diff -p -U2 -r1.11  hid/gerber/gerber.c
--- hid/gerber/gerber.c 21 May 2006 03:52:44 -0000      1.11
+++ hid/gerber/gerber.c 6 Jun 2006 03:31:37 -0000
@@ -853,4 +853,6 @@ static void
 gerber_fill_circle (hidGC gc, int cx, int cy, int radius)
 {
+  if (is_drill)
+    radius = ROUND(radius*2)/2;
   use_gc (gc, radius);
   if (!f)
@@ -867,5 +869,5 @@ gerber_fill_circle (hidGC gc, int cx, in
       pending_drills[n_pending_drills].x = cx;
       pending_drills[n_pending_drills].y = cy;
-      pending_drills[n_pending_drills].diam = ROUND(radius * 2);
+      pending_drills[n_pending_drills].diam = radius * 2;
       n_pending_drills++;
       return;