Re: gEDA-user: Restrict facility?

2010-11-09 Thread Rick Collins
You might want to take a look at FreePCB.  This is a Windows based 
PCB layout tool that interfaces to an autorouter which does support 
keepout regions for the router.  www.freepcb.com


Rick


At 09:47 PM 11/9/2010, you wrote:
I am looking at migrating from Eagle to PCB and thus am a complete 
newbie to PCB, although an old hand at printed circuit boards.


Eagle has a facility, both in component packages and on the board, 
where you can create rectangular areas that are "no go" for the 
router. I've spent some time looking, thus far without success, to 
see if there is an equivalent facility in PCB. That could be because:


 a) There is no such facility.
 b) The manual fails to mention it.
 c) It's there but I'm just missing it.

Can anyone confirm that such a facility does/does-not exist? In 
Eagle these are called restrict layers but searching the geda 
archive for "restrict" yielded only some acrimonious discussion about GPL.


Thanks

Cam Farnell


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user




___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Restrict facility?

2010-11-09 Thread DJ Delorie

>   a) There is no such facility.

This one.  We've been talking about a redesign to pcb's internals that
would allow support for this, but at the moment, we don't have it.


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: Restrict facility?

2010-11-09 Thread Cam Farnell

I am looking at migrating from Eagle to PCB and thus am a complete newbie to 
PCB, although an old hand at printed circuit boards.

Eagle has a facility, both in component packages and on the board, where you can create 
rectangular areas that are "no go" for the router. I've spent some time 
looking, thus far without success, to see if there is an equivalent facility in PCB. That 
could be because:

 a) There is no such facility.
 b) The manual fails to mention it.
 c) It's there but I'm just missing it.

Can anyone confirm that such a facility does/does-not exist? In Eagle these are called 
restrict layers but searching the geda archive for "restrict" yielded only some 
acrimonious discussion about GPL.

Thanks

Cam Farnell


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB+GL Testers (please test)

2010-11-09 Thread Peter TB Brett
On Tue, 09 Nov 2010 23:08:15 +, Peter Clifton  wrote:

> Try again now.. it is possible that I didn't have the correct patches
> pushed at that point. I was just pushing something out just now for
> someone at Intel to test (looking at a driver bug), so we might have
> collided.

BTW, it can often be useful to use a tag rather than a branch when you have
a specific commit that you want someone to check out and test.

Cheers,

Peter :-)

-- 
Peter Brett 
Remote Sensing Research Group
Surrey Space Centre


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: pcb displays popup dialogs for messages instead of using log window

2010-11-09 Thread Stephen Ecob
On Wed, Nov 10, 2010 at 8:36 AM, Kai-Martin Knaak
 wrote:
> Colin D Bennett wrote:
>
>> The startup messages are a little annoying,
>> but when I hit 'o' and get a barrage of dozens of "shorted net"
>> warnings, etc., it's basically unusable.
>
> I have installed many versions of pcb but have never seen this.

Me neither.  Strange bug!

On Wed, Nov 10, 2010 at 7:53 AM, Colin D Bennett  wrote:
> I've been using the pcb 2010-09-29 release (built from git sources on
> Ubuntu 10.04 amd64) and also now tried the latest git HEAD as of
> 2010-11-07 and the problem remains.

I've built and run 2010-09-29 from the sourceforge tarball and also
recently built and run from git head.
Both have been fine on my Fedora Core 13 x86-32 system.
I also know that some community members are using Gentoo successully.
So:

* Anyone else out there running PCB on Ubuntu 10.04 ?

* Anyone else out there running PCB on AMD64 ?

If so, do you see this bug ?

Stephen


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: pcb displays popup dialogs for messages instead of using log window

2010-11-09 Thread Colin D Bennett
On Tue, 09 Nov 2010 22:36:28 +0100
Kai-Martin Knaak  wrote:

> Colin D Bennett wrote:
> 
> > The startup messages are a little annoying,
> > but when I hit 'o' and get a barrage of dozens of "shorted net"
> > warnings, etc., it's basically unusable.
> 
> I have installed many versions of pcb but have never seen this.
> Seems like there is something peculiar about your environment 
> that has triggered this bug. Can you give some more details on
> your system?

OK, it is fixed.  It must have been that the VCS workspace had some
weird stale generated files because after doing fresh checkout and
rebuilding from this clean workspace, the problem is gone.

Sorry to trouble the mailing list with this trivial problem -- I thought
I had already done a really-clean build but I guess not.

Regards,
Colin


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB+GL Testers (please test)

2010-11-09 Thread Peter Clifton
On Tue, 2010-11-09 at 22:39 +0100, Frank Bergmann wrote:
> Am 09.11.2010 01:16, schrieb Peter Clifton:
> > Tweakable options are:
> >
> > Uncommenting
> > // buffer->use_vbo = false;
> >
> > or
> >
> > removing / commenting:
> >
> > buffer->use_map = false;
> >
> > from hid/common/hidgl.c's hidgl_init_triangle_array()
> >
> > use_vbo = false; will give you arrays (always)
> > Removing use_map = false; will give you mapping with use_vbo, or arrays 
> > without.
> 
> Sorry, I can not find any appearance of "buffer->use_map" or even 
> "use_map" in your latest local_customisation_no_pours branch. Shall I 
> use an other branch? Or did I do something wrong?

Try again now.. it is possible that I didn't have the correct patches
pushed at that point. I was just pushing something out just now for
someone at Intel to test (looking at a driver bug), so we might have
collided.

PS. If you see crashes, I'm interested in the full backtrace. It might
be that the driver doesn't appreciate that I still have some buffer
mapped whilst I'm glClear'ing. (Although it should not care!).

Regards,

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)
Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB+GL Testers (please test)

2010-11-09 Thread Frank Bergmann

Am 09.11.2010 01:16, schrieb Peter Clifton:

Tweakable options are:

Uncommenting
// buffer->use_vbo = false;

or

removing / commenting:

buffer->use_map = false;

from hid/common/hidgl.c's hidgl_init_triangle_array()

use_vbo = false; will give you arrays (always)
Removing use_map = false; will give you mapping with use_vbo, or arrays without.


Sorry, I can not find any appearance of "buffer->use_map" or even 
"use_map" in your latest local_customisation_no_pours branch. Shall I 
use an other branch? Or did I do something wrong?


Frank.



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: pcb displays popup dialogs for messages instead of using log window

2010-11-09 Thread Kai-Martin Knaak
Colin D Bennett wrote:

> The startup messages are a little annoying,
> but when I hit 'o' and get a barrage of dozens of "shorted net"
> warnings, etc., it's basically unusable.

I have installed many versions of pcb but have never seen this.
Seems like there is something peculiar about your environment 
that has triggered this bug. Can you give some more details on
your system?

* version of pcb
* Linux distribution
* Desktop environment (KDE/GTK)

You might try to start pcb in the environment of a fresh new test-account.

---<)kaimartin(>---
-- 
Kai-Martin Knaak  tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik  fax: +49-511-762-2211 
Welfengarten 1, 30167 Hannover   http://www.iqo.uni-hannover.de
GPG key:http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: pcb displays popup dialogs for messages instead of using log window

2010-11-09 Thread Colin D Bennett
Hi,

pcb is displaying some annoying dialogs with a "printf" style format
string instead of the usual log message window I am used to seeing.  I
can't figure out how to turn off these dialogs, of which several pop up
at startup and then whenever a message would be logged.

See the screen capture collage of these dialogs at
.

At startup, several dialog boxes are displayed in sequence with the
following contents, as well as missing/garbage characters on the two
dialog buttons (the left button--perhaps Cancel--has some sort of
missing-character glyph that shows "0008"):

#1
  Note: home directory is "%s"
#2
  Loading menus from %s
#3
  The gtk gui current ignores "%s"as part of a menuitem resource. Feel
  free to provide patches

Other things, that produce log messages, such as optimizing nets
with the 'o' key shortcut produces the same sort of thing, but worse

I've been using the pcb 2010-09-29 release (built from git sources on
Ubuntu 10.04 amd64) and also now tried the latest git HEAD as of
2010-11-07 and the problem remains.

I tried moving my ./pcb/preferences away and it didn't fix it.  Thanks
in advance for the help!  The startup messages are a little annoying,
but when I hit 'o' and get a barrage of dozens of "shorted net"
warnings, etc., it's basically unusable.

Regards,
Colin


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: Using the Scheme API: an example!

2010-11-09 Thread Peter TB Brett
Hi folks,

Here's a nice example of what can be done with the Scheme API even in its
incomplete state.  The attached plugin for gschem improves on gschem's
built-in code for selecting a whole net (double-clicking on a net) by
recognising and following "netname=" attributes. [1]

To run it, check out and install my `guile-scheme-api' branch by following
the instructions in my original e-mail:

http://thread.gmane.org/gmane.comp.cad.geda.user/33328

If you've already done this, you'll need to update it with `git pull' and
recompile/reinstall it.

Download the attached files (`select-whole-net.scm' and
`select-whole-net.sch') and create a gschemrc file with the following
contents:

;; Load select-whole-net plugin
(load "select-whole-net.scm")

Open `select-whole-net.sch' in gschem, and select a single net segment.
Then use the Scheme prompt to run:

(select-whole-selected-net)

I hope this interesting & useful example will inspire you all to using this
stuff to do cool things. ;-)

Peter

[1] Extending this plugin to recognise and handle net= attributes on
symbols is left as an exercise to the reader.

-- 
Peter Brett 
Remote Sensing Research Group
Surrey Space Centrev 20100214 2
C 4 4 0 0 0 title-B.sym
N 43000 49000 45000 49000 4
{
T 43000 49100 5 10 1 1 0 0 1
netname=foo
}
N 45000 49000 45000 47000 4
N 45000 47000 43000 47000 4
N 43000 47000 43000 49000 4
N 45500 49000 47500 49000 4
{
T 45500 49100 5 10 1 1 0 0 1
netname=foo
}
N 47500 49000 47500 47000 4
N 47500 47000 45500 47000 4
N 45500 47000 45500 49000 4
N 48000 49000 5 49000 4
{
T 48000 49100 5 10 1 1 0 0 1
netname=bar
}
N 5 49000 5 47000 4
N 5 47000 48000 47000 4
N 48000 47000 48000 49000 4
;; Select the whole of a net in gschem
;; Copyright (C) 2010 Peter Brett 
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
;;

(use-modules (ice-9 optargs))
(use-modules (geda object))
(use-modules (geda page))
(use-modules (geda attrib))
(use-modules (gschem window))
(use-modules (gschem selection))
(use-modules (srfi srfi-1))

;; Deselects everything on page
(define (deselect-all! page)
  (for-each deselect-object! (page-contents page)))

;; Returns the values of all netname attributes of net
(define (netnames net)
  (fold

   ;; If attrib is a "netname=" attribute, adds it to the front of lst
   ;; and returns lst.  Otherwise, returns lst unmodified.
   (lambda (attrib lst)
 (let ((name-value (parse-attrib attrib)))
   (if (and name-value (string=? "netname" (car name-value)))
   (cons (cdr name-value) lst)
   lst)))

   '() ;; Initial value of lst
   (object-attribs net) ;; Iterate over all attributes of net
   ))

;; Returns #f if net doesn't have a netname= attribute with value
;; equal to name.
(define (netname-match? net name)
  (member name (netnames net)))

;; Selects net and all attached attributes.
(define (select-net-segment net)
  (for-each select-object! (cons net (object-attribs net

;; Recursive function for finding netnames from directly-connected
;; net segments.
(define* (select-adjacent/netnames net #:optional (netname-lst '()))
  (if (or (not (net? net)) (object-selected? net))
  ;; Either this object is not a net, or it's already selected
  ;; (i.e. we've already visited it).  Eitherway, just return
  ;; the net names we've already found.
  netname-lst

  ;; Otherwise, we need to:
  (begin
;; 1. Select the segment (& attributes)
(select-net-segment net)
;; 2. Recurse to find any net names on directly-connected
;;net segments.
(fold select-adjacent/netnames
  (append! (netnames net) netname-lst)
  (object-connections net)

;; Recursive function for finding netnames from name-connected net
;; segments.
(define* (select-remote/netnames
  name #:optional (netname-lst '()) (page (active-page)))
  (fold

   ;; If obj is a net with a netname= attribute matching name,
   ;; recursively adds any related netnames to lst and returns lst.
   ;; Otherwise, returns lst unmodified.
   (lambda (obj lst)
 (if (and (net? obj)
  (netname-match? obj name))
 (select-adjacent/netnames obj lst)
 lst))

   netname-lst ;; Initial value of lst
   (page-contents page) ;; Iterate over full page contents
   ))

;; Select all net segments