New refdes numbering tool

Bug #698650 reported by nobody
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gEDA
New
Low
Unassigned

Bug Description

As promised at the code sprint, I've developed a new refdes numbering tool. I'm tentatively calling it grefdes and it tries very hard to just "Do the Right Thing"(TM).

By default, grefdes is gentle and preserves all existing refdes. As designers who have gone through layout know, it is extremely inconvenient to have a PCB layed out and then have all the reference designators change underneath essentially putting everything in the wrong place. For the same reason, new unassigned refdes are added at the end of the range. When ECOs are done on a board it is easier for the layout engineer to have the parts show up as new refdes and in an unplaced location off the board. If existing refdes are reused then the layout engineer might not notice that R2, which was already placed, now has terribly long traces.

Here's the output from grefdes --help

////////////////////////////////////////////////////////////////////////////////////////
USAGE : grefdes [--test] [--renum||--reuse||--clear] [--pgskip #] sch1 [...schN]
USAGE : grefdes --help
USAGE : grefdes --version
////////////////////////////////////////////////////////////////////////////////////////

grefdes reads a set of gschem schematic files and numbers the reference designators.
By default, existing reference designators are preserved and unassigned refdes are
given numbers above the existing range. The original schematics are modified and
overwritten unless the --test option is set.

Options:

  --help Displays this help message.

  --clear Clear all reference designators to their unassigned(X?) form.

  --pgskip [#] When this flag is used, components on the first schematic sheet
                are numbered starting with 101. On the second sheet, they start
                with 201, etc. Specifying a value sets the gap between pages.
                For example, --pgskip 10 will start with 11, 21, 31, etc.

  --renum Force all reference designators to be renumbered.
                Existing refdes are overwritten.

  --reuse Reuse gaps in the refdes range for newly assigned designators.
                Given a schematic with U1,U3,U10 any new refdes would be added
                at U2, U4-U9, and U11-.

  --test Perform all operations but leave results in new files whose names are
                generated by appending ".renum" to the original file name.
                The default is to overwrite the original schematic.

  --version Display the program version

Revision history for this message
nobody (nobody-users) wrote :
Revision history for this message
Peter TB Brett (peter-b) wrote :

I believe that the functionality of this tool is due to be added to the existing tools for refdes renumbering...?

Changed in geda:
importance: Undecided → Low
Revision history for this message
Krzysztof Kościuszkiewicz (k-kosciuszkiewicz) wrote :

On the first glance the comparison with existing refdes_renum script yields:
  * neither tool cares about slotting
  * this one can reuse unused designators within schematics, whereas refdes_renum simply starts from $MAX_NUMBER + 1
  * this one has cleaner code
  * refdes_renum is quite well tested, this one is not (yet?)

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :

http://www.gedasymbols.org/user/alexey_kharikovskiy/

This is my new renumber tool.
It completely compatible with old renumber tool (refdes_renum)

This python script performs renumber of REFDES attributes of symbols and footprints of whole project simultaneously.

This tool is nessesary when exist the .sch and the .pcb files of development project and We forced add some components to project and then renumber it.

Features:

1. This script completely compatible (input,output,errors) with official "refdes_renum" script of geda project and writen for replacing him.
2. This script can take list of .sch files
Example:
  refdes_renum.py mysch_1.sch mysch_2.sch ... mysch_N.sch
or list of .sch and list of .pcb files:
  refdes_renum.py mysch_1.sch ... mysch_N.sch mypcb_1.pcb ... mypcb_N.pcb
or project file:
  refdes_renum.py pathto/projectfile

3. --sort option allows to use defferent directions of renumber (Top to bottom, diagonal, left to right and other). For details see --help option

4. --component option allows to use component coordinates for renumber instead REFDES coordinates.

PS. Read help for more :)

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :
Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :

More detailed discussion of geda-user http://comments.gmane.org/gmane.comp.cad.geda.user/41537

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.