Re: gEDA-user: gschem command line printing

2011-07-16 Thread CoBra
Sorry for the delay, I've been out of space for a week.
I would like to give an answer to those who replied to my message.

For Michael Theurl:

Thank you for your script. It's quite long, and it's actually just one
line in it that caught my interest:

gschem -p -o$i.ps -s/usr/share/gEDA/scheme/print.scm $i


You see, my question was rather technical: I had tried the same command
in my Linux and it did not work, because I took for granted the
way it's presented in the actual print.scm file:


;; This file may be used to print gschem schematics from the
;; command line.  Typical usage is:
;;
;;   gschem -p -o mysch.ps -s /path/to/this/file/print.scm mysch.sch
;;
;; The schematic in mysch.sch will be printed to the file mysch.ps


Well, it looks like print.scm is wrong about that, isn't it?
There must be no space between -o and its option value, as well
as between -s and its option value.
Basically the FAQ contradicts the comment in print.scm.

Nobody here could tell me this, but luckily for me I read your script
and I realized the gschem FAQ actually had the same syntax, only
I thought it was some typing mistake. But after reading your script
I ran the command with that syntax and to my surprise it worked.

So my case is basically solved, thanks to your script reminding me about the 
FAQ.

For Kai-Martin Knaak:

Are you working on a Spectrum compatible too?
What kind is that? Mine is a computer designed
and manufactured in the communist Romania and
built in private as a hobby by students in Bucharest
for a few years after 1990. Unfortunately the project
and the documentation got lost in time like tears in rain
and I've decided it's time to give this computer a place
in history by publishing all information about it in
an organized manner and more than that, by manufacturing
100 pieces of this computer.
 The name of the computer is CoBra (COmputer BRAsov).
So what is it that you are working on?



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


Re: gEDA-user: gschem command line printing

2011-07-13 Thread Kai-Martin Knaak
CoBra wrote:

 I'm working on a pretty big project which is essentially a Spectrum 
 compatible computer, which will be published as open source when I
 finish it. The project is being drawn using gschem and pcb. There are
 15 different schematics, each on one A4 page.

Sounds like my current project :-)


 Until recently I got away with printing from the menu in gschem.
 But now, with 3 different revisions of the computer, which will
 be developed separately into more versions, the printing seems to
 take just too much time.

I attached a shellscript for command line printing. It usess the 
print.scm distributed by geda to output all sheets of a hierarchical 
design. Output format is a single multi page PDF document. The current 
date is appended to the file name.

The script can can deal with a single flat schematics, too. It does not 
respect multiple files as input, though. This should not be hard to 
add. Anyway, I'd recommend a master sheet even for projects with no 
formal hierarchy. This provides an intuitive view on the contents and 
an additional way to navigate the project.

The script needs some tools that should be part of every linux distro:
(awk, psmerge and ps2pdf)


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

schaltplandruck.sh
Description: application/shellscript


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


Re: gEDA-user: gschem command line printing

2011-07-12 Thread Michael Theurl
Hello Chris,

That's sounds great. 
Maybe i can help you, i wrote a script to export pdfs and handbooks for 
geda/pcb projects. I Attach you the script.
I use Fedora Core 14 with the standart geda-gaf rpms.

And it works perfectly.

you need ghostscript  a project file and the createPCB.sh script

example project:
-
schematics schem1.sch schem2.sch
output-name masterboard
elements-dir ~/gaf/pcb-elements/using
-

change the path in the createPCB.sh for the print.scm to your needs.



createPCB.sh
Description: Binary data


run the script ./createPCB.sh pdf
and you get an pdf with all outputs. that you can esaylie share or print.

hopefully i could help you, just write me if you have any questions.

best regards

Michael


On Jul 12, 2011, at 8:11 AM, CoBra wrote:

 Hi everybody
 
 I'm working on a pretty big project which is essentially a Spectrum 
 compatible computer, which will be published as open source when I finish it. 
 The project is being drawn using gschem and pcb. There are 15 different 
 schematics, each on one A4 page.
 Until recently I got away with printing from the menu in gschem.
 But now, with 3 different revisions of the computer, which will be developed 
 separately into more versions, the printing seems to take just too much time.
 
 Eventually I tried the command line printing as described in the gschem FAQ, 
 but the problem is that there is no output at all, no .PS files are generated 
 whatsoever. The gschem window pops up for a very short milisecond and 
 disappears (I'm using Linux and KDE) but there is no postscript output.
 
 I have 9 different gEDA versions installed in my system (1.0.1, 1.0.2, 1.2.1, 
 1.3.1, 1.4.0, 1.5.0, geda CD Suite (0.0.2), geda-cvs (2008-07-29) and a 
 version installed with Linux (2005-03-13).
 
 I used 1.5.0 for my project. When I saw that command line printing is not 
 working in 1.5.0 I tried with 1.4.0 but it still did nothing.
 
 my print.scm file is in /opt/geda-1.5.0/share/gEDA/scheme
 
 Among other lines, it contains the following:
 
 ; filename is specified on the command line
 (gschem-postscript dummyfilename)
 
 As far as I've seen, in all the other geda versions I have, these two lines 
 are identical.
 But googling for a solution I came across people saying that supposedly there 
 should be another file, gschem-print.scm, which is missing but possibly 
 replaceable by print.scm, and that the 2 lines above should actually be 
 like this:
 
 ; filename is specified on the command line
 (gschem-print dummyfilename)
 
 
 Can anyone point me to a solution here, am I missing an .scm file, am I 
 having the wrong content in print.scm or what seems to be the problem?
 
 From gschem I can print either color or b/w with no problem at all, I use 
 customized gschemrc files in each project folder and it's great, the only 
 annoying thing is the command line printing not working.
 
 Thank you all in advance
 
 Chris
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
 

--
[] this Email is made of 100% Recyclable elektrons 
[] url  : www.smog.at
[] mailto : michael.the...@smog.at
[] key: www.smog.at/key





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


Re: gEDA-user: gschem command line printing

2011-07-12 Thread Michael Theurl
here is my print.scm

-
;; $Id$
;;
;; This file may be used to print gschem schematics from the
;; command line.  Typical usage is:
;;
;;   gschem -p -o mysch.ps -s /path/to/this/file/print.scm mysch.sch
;;
;; The schematic in mysch.sch will be printed to the file mysch.ps

;; Uncomment these to override defaults when printing from the command line
;(output-orientation portrait)
;(output-type limits)
;(output-color enabled)
;(output-text ps)

; You need call this after you call any rc file function
(gschem-use-rc-values)

; filename is specified on the command line
(gschem-postscript dummyfilename)

(gschem-exit)
-


On Jul 12, 2011, at 8:11 AM, CoBra wrote:

 Hi everybody
 
 I'm working on a pretty big project which is essentially a Spectrum 
 compatible computer, which will be published as open source when I finish it. 
 The project is being drawn using gschem and pcb. There are 15 different 
 schematics, each on one A4 page.
 Until recently I got away with printing from the menu in gschem.
 But now, with 3 different revisions of the computer, which will be developed 
 separately into more versions, the printing seems to take just too much time.
 
 Eventually I tried the command line printing as described in the gschem FAQ, 
 but the problem is that there is no output at all, no .PS files are generated 
 whatsoever. The gschem window pops up for a very short milisecond and 
 disappears (I'm using Linux and KDE) but there is no postscript output.
 
 I have 9 different gEDA versions installed in my system (1.0.1, 1.0.2, 1.2.1, 
 1.3.1, 1.4.0, 1.5.0, geda CD Suite (0.0.2), geda-cvs (2008-07-29) and a 
 version installed with Linux (2005-03-13).
 
 I used 1.5.0 for my project. When I saw that command line printing is not 
 working in 1.5.0 I tried with 1.4.0 but it still did nothing.
 
 my print.scm file is in /opt/geda-1.5.0/share/gEDA/scheme
 
 Among other lines, it contains the following:
 
 ; filename is specified on the command line
 (gschem-postscript dummyfilename)
 
 As far as I've seen, in all the other geda versions I have, these two lines 
 are identical.
 But googling for a solution I came across people saying that supposedly there 
 should be another file, gschem-print.scm, which is missing but possibly 
 replaceable by print.scm, and that the 2 lines above should actually be 
 like this:
 
 ; filename is specified on the command line
 (gschem-print dummyfilename)
 
 
 Can anyone point me to a solution here, am I missing an .scm file, am I 
 having the wrong content in print.scm or what seems to be the problem?
 
 From gschem I can print either color or b/w with no problem at all, I use 
 customized gschemrc files in each project folder and it's great, the only 
 annoying thing is the command line printing not working.
 
 Thank you all in advance
 
 Chris
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
 

--
[] this Email is made of 100% Recyclable elektrons 
[] url  : www.smog.at
[] mailto : michael.the...@smog.at
[] key: www.smog.at/key





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


Re: gEDA-user: gschem command line printing

2011-07-12 Thread Colin D Bennett
On Tue, 12 Jul 2011 14:05:22 +0200
Michael Theurl michael.the...@smog.at wrote:

 Hello Chris,
 
 That's sounds great. 
 Maybe i can help you, i wrote a script to export pdfs and handbooks
 for geda/pcb projects. I Attach you the script. I use Fedora Core 14
 with the standart geda-gaf rpms.
 
 And it works perfectly.
 
 you need ghostscript  a project file and the createPCB.sh script
 
 example project:
 -
 schematics schem1.sch schem2.sch
 output-name masterboard
 elements-dir ~/gaf/pcb-elements/using
 -
 
 change the path in the createPCB.sh for the print.scm to your needs.

Thanks for posting your createPCB.sh script.  I have a question,
though: why do you use pcb -x bom to create the BOM instead of using
gnetlist on the .sch file?  The gnetlist option allows much more detail
in the BOM since you can use the 'attribs' file to customize the data
and include fields such as “manufacturer_partnum”, “comment”, etc.
Is there some benefit to using pcb for the BOM that I am missing?

Regards,
Colin


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