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

gEDA-user: Sort of batch printing in gschem



Hello, all.

I've made a script which can be used to print all open schematics to
files in one step. You could either use "Execute script" in gschem menu
to run it as is or uncomment last string to run it as standalone script
using command 'gschem -s printall.scm -p schematic1.sch schematic2.sch
...'. See attachment.

Thanks to Peter B. and others who made new Scheme library for gschem.

-- 
VZh
(use-modules (srfi srfi-1))
(use-modules (geda page))
(use-modules (gschem window))
(define (get-selected-filename) (page-filename (active-page)))
(for-each
  (lambda (page) (begin
    (set-active-page! page)
	(output-orientation "landscape")
    (gschem-use-rc-values)
    (gschem-postscript (string-append (page-filename page) ".ps"))
    )
  ) (active-pages)
)
(gschem-exit)

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