[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: page-renumber script
I added a page-renumber script to my gedasymbols area.
This script is used with gschem's built-in page renumbering. The
built-in one renumbers refdes's on a page to be sequential; this
script makes copies of the page with all numbers shifted by a fixed
amount.
For example, I have four zone controllers in my furnace board. I edit
just one page, and generate the other three with the script:
page-renumber -s 100 -e 199 -b 200 zone1.sch zone2.sch
page-renumber -s 100 -e 199 -b 300 zone1.sch zone3.sch
page-renumber -s 100 -e 199 -b 400 zone1.sch zone4.sch
Thus, any refdes in the range 100-199 (i.e. C104 or U138, but skipping
R5 or J945) would be renumbered to the range 200-299 (or 300-399,
etc), by simply adding 100 (or 200 or 300 for those pages) to each
number.
http://www.gedasymbols.org/user/dj_delorie/
Usage: page-renumber [options] [infile] [outfile]
-n name change refdes using that name
-re regex change lines matching that regex (like "netname=addr[0-9]")
-s num start number - numbers lower than this remain unchanged
-e num end number - numbers higher than this remain unchanged
-b num base number - All numbers have "base-start" added to them.
Note that infile and outfile may be missing or "-" to indicate stdin/stdout.
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user