← Back to team overview

kicad-developers team mailing list archive

Re: Eeschema 6.0 file format / data structure

 

Hi,

On 29.03.2018 15:02, Jeff Young wrote:

> (That way the Symbol
> Settings dialog maps 1:1 with the parent symbol, and the Symbol Fields
> dialog maps 1:1 with the alias.)

I wonder if it would make sense to go the opposite direction, and
introduce an inheritance hierarchy. Symbols can inherit from other
symbols, define or override attributes and also add new attributes that
may in turn be abstract.

So for example, a "generic diode" would

 - provide a diode symbol as vectors
 - provide a SPICE type of D
 - provide the reference prefix "D"
 - define abstract properties for forward voltage, maximum current etc.

Specific diodes would inherit that, provide the forward voltage and
maximum current and name of the correct SPICE model, and would also map
the pins in the drawing.

Components that use the same graphical representation can then be easily
exchanged without having to adjust the schematic, which would be useful
e.g. when exchanging a single-unit device for a multi-unit one.

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References