gschem: please remove the refdes of copied symbols

Bug #698748 reported by KaiMartin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gEDA
Fix Released
Wishlist
Unassigned

Bug Description

At the moment a copy of a symbol will inherit all
attributes of its parent. So you will end up with two
symbols with identical refdes. This is hardly useful.
Please reset the refdes of the copied symbol to the
default value which will most likely be something like
"U?"
---<(kaimartin)>---

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

Confirmed missing feature.

Changed in geda:
status: New → Confirmed
Revision history for this message
Peter Clifton (pcjc2) wrote :

I coded this demo up for someone in the past.. seems relevant.

Requires adding to gschemrc:

(load-from-path "<PATH_TO_SCRIPT>/unnumber-refdes.scm")
(add-hook! copy-component-hook unnumber-refdes)

Changed in geda:
status: Confirmed → Fix Committed
Peter Clifton (pcjc2)
Changed in geda:
status: Fix Committed → New
Revision history for this message
Peter Clifton (pcjc2) wrote :

I've reverted the "fix" for this, as it broke other workflows involving copy+paste between schematics.

The "fix" also adds additional steps for the user when creating slots 2 through N for a numslots=N component. (Fill in the refdes again, change slot=... number). I don't think there is a correct way to automate this completely.

A more acceptable implementation of this feature would definately include a configuratble way to turn this feature on or off. One possibility might be some user selectable scheme code hook, either to remove the refdes when copying into the paste buffer(s), or to remove or re-number conflicting refdes when pasting into the page.

Only removing clashes would probably be nice, but at the moment could only usefully work for schematics confined to a single page. Another possible option is auto-incrementing numbering refdes during paste. (I believe we may already ship with such an example?)

(NB.. the scheme example I attached above does not work well at present, as it only removes refdes on paste, thereby ruining Edit->Cut, Edit->Paste functionality by unnecessarily removing refdes).

Revision history for this message
Edward Hennessy (ehennes) wrote :

Scheme code and a scheme hook were added to provide the requested functionality. Add the following to the gschemrc file to enable the functionality:

(load-from-path "auto-refdes.scm")
(add-hook! copy-objects-hook auto-refdes-reset!)

Functionality added in commit:
f45be694625ae66b9c536a8b0f6ec179bdf14d54

Changed in geda:
status: New → Fix Committed
Changed in geda:
status: Fix Committed → Fix Released
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.