Hi,
as Jonathan Hanson is going to build a heavy symbol library, I tried to
test wether the symbol inheritance described at:
http://archives.seul.org/geda/dev/Oct-2005/msg00043.html
would work or not.

As a test, I opened the resistor-2.sym file, added two texts
(documentation and value), and saved it in a local symbol library
directory (resistor-100K.sym):
v 20050820 1
C 0 200 1 0 0 resistor-2.sym
{
T 0 200 5 10 0 0 0 0 1
documentation=http://link.to.documentation.com
T 200 0 5 10 1 1 0 0 1
value=100K
}
I added the directory to the component library search path (local gafrc
file), and wrote (promote-invisible "enabled") to a local gschemrc file.

Then I opened gschem, and placed this symbol. I noticed the following:
        - In the preview, only the 100K text is displayed, and not the R? of
the resistor-2.sym
        - When placing, only the 100K text is displayed.
        - After placing, both the symbol graphic and the 100K text are
displayed, but not the R? text of resistor-2.sym.
        - If I try to move the symbol, I move the texts, but not the graphic
symbol.
        - If I double-click on the component, the multiple attribute window
appears, but without any attribute attached.
        - If I double-click on the 100K text, the multiple attribute window
appears, but without any attribute attached.


Second attempt:
I modified resistor-100K.sym so it looks like:
v 20050820 1
C 0 200 1 0 0 resistor-2.sym
T 0 200 5 10 0 0 0 0 1
documentation=http://link.to.documentation.com
T 200 0 5 10 1 1 0 0 1
value=100K

And get the following:
        - In the preview, only the 100K text is displayed, and not the R? of
the resistor-2.sym
        - When placing, only the 100K text is displayed.
        - After placing, both the symbol graphic and the 100K text are
displayed, but not the R? text of resistor-2.sym.
        - If I try to move the symbol, I move the texts, but not the graphic
symbol.
        - If I double-click on the component, the multiple attribute window
appears, with both documentation and value attributes (not refdes and
device which are in resistor-2.sym).
        - If I double-click on the 100K text, I can edit the text.

I think the second attempt was better than the one because at least I
could edit the text.

I think the symbol inheritance should work and could be a great
addition, and the heavy libraries built could be configured in the
search path library, so both light and heavy symbols guys will be
happy. 
I haven't looked at the code yet to see what happens. Any thoughts about
this behaviour to be added? Can a heavy symbol library go into the main
package?

Regards,

Carlos


Reply via email to