Attaching parasite information to an object (or group)

Hi!
Right now im developing a little extension, and I have a problem what I could not get workaround. I hope someone more knowledgeable can me give a hand.
Im implementing cross referencing in inkscape (it can be found on many schematics), please take a look at this example: http://khiraly.googlepages.com/crossreference.png
The problem is, when a group (or object) is copied, all the ids got a new random string, so it cant be determine the original ids or the original component's type. All the component is similar (from a svg point of view) so it consists lines and texts.
So Im looking forward to attach infos to an svg group, which persiste, when the group is copied. Im interesting in any method, like defining a css style, adding a parasite information, or rename the resulting group's id back to its original form plus a random character.
Can anybody help me here?

So Im looking forward to attach infos to an svg group, which persiste, when the group is copied. Im interesting in any method, like defining a css style, adding a parasite information, or rename the resulting group's id back to its original form plus a random character.
Can anybody help me here?
Any reason why clones won't work?
Joshua L. Blocher verbalshadow

Any reason why clones won't work?
Yep. A component consist a drawing (lines, arcs), a name and a reference. Only the drawing are similar. The name and the reference change.
So simple cloning is not an option. Maybe clones have enough capability for only the drawing, and I could group the clone(drawing), name and reference. I'll digg into a bit more after I implemented the basic features.
Khiraly
participants (2)
-
Joshua Blocher
-
khiraly