Re: gEDA-user: gschem gnetlist problem

2011-07-13 Thread Jared Casper
On Wed, Jul 13, 2011 at 4:06 PM, Kai-Martin Knaak  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
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-13 Thread Peter Brett
Colin D Bennett  writes:

> On Wed, 13 Jul 2011 02:20:22 +0200
> Kai-Martin Knaak  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 
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 Colin D Bennett
On Wed, 13 Jul 2011 02:20:22 +0200
Kai-Martin Knaak  wrote:

> 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"]
> > 
> > 
> > : In procedure open-file in expression (open-file
> > str OPEN_READ):
> > : 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?

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).

Regards,
Colin


___
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 :

> 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 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"]
> 
> 
> : In procedure open-file in expression (open-file str
> OPEN_READ):
> : 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-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


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


gEDA-user: gschem gnetlist problem

2011-07-12 Thread Girvin R. Herr

Hello all,
I am trying to use gnetlist for the first time to create a Bill Of 
Materials (BOM) from my schematic.  This is a test case of mine to come 
up with a procedure to do this.  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"]


   : In procedure open-file in expression (open-file str
   OPEN_READ):
   : No such file or directory: "attribs"



It produces essentially the same error when using bom2.
Of course, the "output.net" file is empty.

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?


I have looked at the manpage, the gnetlist User's Guide, did some 
searching on the web for this error (gnetlist [open-file "attribs" "r"] 
), and looked at the distribution for more documentation, all to no avail.


For the record, I am using gEDA 1.6.2.20110115, KDE 3.5.10, Slackware 
Linux 12.2 (k2.6.27.7).  I am not a schema/guile/lisp programmer, but I 
do program in other languages.


I would appreciate any hints to get me back on track with gnetlist.
Thanks in advance.
Girvin Herr



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