Re: gEDA-user: gschem gnetlist problem

2011-07-14 Thread Jared Casper
On Wed, Jul 13, 2011 at 4:06 PM, Kai-Martin Knaak k...@familieknaak.de wrote:
 Peter Brett wrote:

 Yes, both are pretty straightforward to add (I think), but I don't have
 time right now.  File feature requests?  :-)

 done: https://bugs.launchpad.net/geda/+bug/810202


Needed a break from verilog so wrote up a quick implementation and
attached it to the bug report.  Scheme can be fun! ;)

From what I can tell it is the first use of the fancy backend-getopt
module Peter added back in January.

Jared


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


Re: gEDA-user: gschem gnetlist problem

2011-07-13 Thread Kai-Martin Knaak
Girvin R. Herr wrote:

 I keep getting the following:
 
 536:$gnetlist -g bom xx.sch
 Loading schematic
 [/home/gherr/projects/vds160/original/hardware/dac/docs/xx.sch]
 Backtrace:
 In current input:
 1: 0* [bom output.net]
 In /usr/local/share/gEDA/scheme/gnet-bom.scm:
37: 1  (let ((port #) (attriblist #)) (bom:printlist (cons #
 attriblist) port) ...)
40: 2* [bom:parseconfig ...
40: 3*  [open-input-file attribs]
 In unknown file:
 ?: 4   [open-file attribs r]
 
 
 unnamed port: In procedure open-file in expression (open-file str
 OPEN_READ):
 unnamed port: No such file or directory: attribs

I remember to have been scratching my head on this, when I did my first 
BOMs. My students tend to fall into this trap, too -- Even when they were 
told they'd need an attrib file. The keyword backtrace suggests a severe
crash had happened. I guess, it is a scheme one-liner to text for existance
of the file and issue a newbie friendly message.
Or even better, produce a sensible default file on the fly.
 Peter B? John D.? Can you whip up such a line?

---)kaimartin(---
-- 
Kai-Martin Knaak
Email: k...@familieknaak.de
http://pool.sks-keyservers.net:11371/pks/lookup?search=0x6C0B9F53
not happy with moderation of geda-user



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


Re: gEDA-user: gschem gnetlist problem

2011-07-13 Thread Krzysztof Kościuszkiewicz
2011/7/13 Kai-Martin Knaak k...@familieknaak.de:

 I remember to have been scratching my head on this, when I did my first
 BOMs. My students tend to fall into this trap, too -- Even when they were
 told they'd need an attrib file. The keyword backtrace suggests a severe
 crash had happened. I guess, it is a scheme one-liner to text for existance
 of the file and issue a newbie friendly message.
 Or even better, produce a sensible default file on the fly.
  Peter B? John D.? Can you whip up such a line?

I thought of adding something like this - possibly refdes and
device attributes could be used by default + a warning message
presented to the user if the attrib file is missing.

Bonus points for suggesting how to make the gnetlist backend messages
traslatable :-)

Cheers,
-- 
Krzysztof Kościuszkiewicz
Simplicity is the ultimate sophistication -- Leonardo da Vinci


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


Re: gEDA-user: gschem gnetlist problem

2011-07-13 Thread Peter Brett
Colin D Bennett co...@gibibit.com writes:

 On Wed, 13 Jul 2011 02:20:22 +0200
 Kai-Martin Knaak k...@familieknaak.de wrote:

 I remember to have been scratching my head on this, when I did my
 first BOMs. My students tend to fall into this trap, too -- Even when
 they were told they'd need an attrib file. The keyword backtrace
 suggests a severe crash had happened. I guess, it is a scheme
 one-liner to text for existance of the file and issue a newbie
 friendly message. Or even better, produce a sensible default file on
 the fly. Peter B? John D.? Can you whip up such a line?

 How about allowing the user to specify the name of the 'attribs' file
 on the gnetlist command line?  Sometimes I would like to produce
 BOM listings with different sets of fields (e.g., parts list for
 assembly vs. BOM for other purposes).

Yes, both are pretty straightforward to add (I think), but I don't have
time right now.  File feature requests?  :-)

Peter

-- 
Peter Brett pe...@peter-b.co.uk
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: gschem gnetlist problem

2011-07-13 Thread Kai-Martin Knaak
Peter Brett wrote:

 Yes, both are pretty straightforward to add (I think), but I don't have
 time right now.  File feature requests?  :-)
 
done: https://bugs.launchpad.net/geda/+bug/810202

---)kaimartin(---
-- 
Kai-Martin Knaak
Email: k...@familieknaak.de
http://pool.sks-keyservers.net:11371/pks/lookup?search=0x6C0B9F53
not happy with moderation of geda-user



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


Re: gEDA-user: gschem gnetlist problem

2011-07-12 Thread DJ Delorie

 What is this attribs file it seems to be looking for and not finding?
 Am I supposed to create this file?  If so, where can I find a 
 description of it?

It's a list of attributes for which you want extracts.

http://geda.seul.org/wiki/geda:bom_readme


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


Re: gEDA-user: gschem gnetlist problem

2011-07-12 Thread Girvin R. Herr



DJ Delorie wrote:
   

What is this attribs file it seems to be looking for and not finding?
Am I supposed to create this file?  If so, where can I find a
description of it?
 

It's a list of attributes for which you want extracts.

http://geda.seul.org/wiki/geda:bom_readme


   

DJ,
Thanks!  That got it going.  I thought it was something like that, but 
wasn't sure.

Onward and upward!
Girvin


___
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